java program class 12 project bluej 30 programs
Answers
Here are some Java programs to try
- 1. Write a Java program to print the sum of two numbers. Go to the editor Test Data: 74 + 36 ; Expected Output : 110
- 2. Write a Java program to print an American flag on the screen. Go to the editor
Expected output:
* * * * * * ==================================
* * * * * ==================================
* * * * * * ==================================
* * * * * ==================================
* * * * * * ==================================
* * * * * ==================================
==============================================
==============================================
==============================================
==============================================
==============================================
==============================================
- 3. Write a Java program to convert a decimal number to binary number.
Input Data:
Input a Decimal Number : 5
Expected Output:
Binary number is: 101
________________________________________________