Professional Documents
Culture Documents
Questions
Questions
Questions
1 4 9 16 25 ………….100
1 8 27 64 125 ……….1000
1 3 5 7 9 ………………….100
1 4 10 19 31…………..100
1 3 7 13 21 31………..100
As input – 5
Wap to input a number and print its reverse number and produce the difference between
input no.s and reverse no.?
Example
Input 153
3*3*3=27
5*5*5=125
1*1*1=1
------------
Wap to input a two no.s and print all even no.s between them?
Input
Start – 5
End – 20
Output 6 8 10 12 14 16 18 20
Prime no.
1- A no. which is not divisible by any other no. except 1 and itself.
2- No any no. is divisible by more than its half.
1- Salary<5000
Hra=salary*10/100
Da=salary*100/100
Ta =salary*5/100
Total=salary+da+ta+hra
12345
12345
12345
12345
12345
55555
44444
33333
22222
11111
22
333
4444
55555