Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

1. Write a Java program to display the following pattern.

Sample Pattern :
J a v v a
J a a v v a a
J J aaaaa V V aaaaa
JJ a a V a a

2. Write a Java program to multiply two numbers.


Input Data:
Input the first number: 10
Input the second number: 11

Expected Output
Product of two binary numbers: 110

3. Write a Java program to print the following string in a specific format


(see output).

Sample Output
Twinkle, twinkle, little star,
How I wonder what you are!
Up above the world so high,
Like a diamond in the sky.
Twinkle, twinkle, little star,
How I wonder what you are

You might also like