Beginner's Level Programming Questions of Java For Practise
Beginner's Level Programming Questions of Java For Practise
for practise
1. Hello World Program:
Solution:
Java
System.out.println("Hello World!");
Write a program that takes two integers as input and prints their sum.
Example:
Input: 2 3
Output: 5
Example:
Example:
Input: 9
Output: 1001
5. Factorial of a Number:
Example:
Input: 5
Output: 120
Example:
Output: 5+7i
Compute the simple interest given principal amount, rate, and time.
Example:
Input: P = 10000, R = 5, T = 5
Output: 2500
Java programming questions
for practise
11
121
1331
14641
Sum = 0 + 1 + 3 + 8 + 21 = 33
***
*****
*******