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 'Hello' on screen and then print my name on a separate line.

2.Java program to print the sum of two numbers. 

3.Java program to divide two numbers and print on the screen.

4.Java program to print the result of the following operations.
Test Data:
a. -5 + 8 * 6
b. (55+9) % 9
c. 20 + -3*5 / 8
d. 5 + 15 / 3 * 2 - 8 % 3

5.Java program that takes two numbers as input and display the product of two numbers.


> Exercise from w3resourse

Top comments (0)