DEV Community

Cover image for Today I have attempted 5 java programming exercises ๐Ÿ˜Š.
Rafeek01
Rafeek01

Posted on

Today I have attempted 5 java programming exercises ๐Ÿ˜Š.

  1. Java program to print the sum (addition), multiply, subtract,
    divide and remainder of two numbers.

  2. Java program that takes a number as input and prints its
    multiplication table up to 10.

  3. Java program to display the following pattern.
    Sample Pattern :
    Image description

  4. Java program to compute the specified expressions and
    print the output.
    Test Data:
    ((25.5 * 3.5 - 3.5 * 3.5) / (40.5 - 4.5))

  5. Java program to compute a specified formula.
    Specified Formula :
    4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11))


> Exercise from w3resourse

Top comments (0)