Class 9 Programming Practise Sets of Progrms 12012025
Class 9 Programming Practise Sets of Progrms 12012025
Java Programming
SI No Question Answer
1 Convert Fahrenheit to Celsius
F → oC = (F − 32) × 5/9 = C
Test Data
Input the number of minutes: 3456789
Expected Output :
3456789 minutes is approximately 6 years and
210 days
Test Data
Input the number (Table to be calculated) :
Input number of terms : 5
Expected Output :
5X0=0
5X1=5
5 X 2 = 10
5 X 3 = 15
5 X 4 = 20
5 X 5 = 25
5 Write a Java program to display the pattern
like a right angle triangle with a number.
Test Data
Input number of rows : 10
Expected Output :
1
12
123
1234
12345
123456
1234567
12345678
123456789
12345678910
1
23
456
7 8 9 10
7 Pascal's Triangle
Test Data
Input number of rows: 5
Expected Output :
8 Reverse * Triangle
Test Data
Input the number: 6
Expected Output :
******
*****
****
***
**
*