Skip to content
- WAP to read a number and print all numbers from 1 to that number
- WAP to read number and print all even numbers from 1 to that number
- WAP to print all number from 1 to 10 by using while, for and do -while loop.
- WAP to read a number and find sum of all numbers from 1 to that number
- WAP to read a number and find factorial of that number
- WAP to read a number and find reverse of that number
- WAP to read a number and check if it is a prime number or not
- WAP to print all prime number in range from 1 to 100
- WAP to print first 10 fibonacci number
- WAP to read a number and find sum of its digits
- WAP to find a 3 digit armstrong number
- WAP to print all armstrong numbers from 1 to 999
- WAP to print ASCII chars and values from 1 to 255
- WAP to print alphabets from A to Z
- WAP to read a number and count all numbers which divides the given number perfectly
- WAP to read 2 numbers and print their common factors
- WAP to read 2 numbers and print HCF
- WAP to print factorial of all numbers from 1 to 10
- WAP to read 2 numbers a and b and print all numbers from a to b
- WAP to repeatedly read a number until it is in range from 10 to 20
- WAP to read a number and print all numbers which divides the given number perfectly
- WAP to find sum of series

S = 1 + 2 + 3 + …. + N
- WAP to find sum of series

S = 1 + 2! + 3! + …. N!
- WAP to find sum of series

S = 1 + 1/2 + 1/3 + 1/4 + 1/5 + …. + 1/N
- WAP to find sum of series

S = 1 – 1/2 + 1/3 – 1/4 + 1/5 – …. 1/N
- WAP to read a number and print tables from 1 to that number
- WAP to print following output
- 12345

1234

123

12

1
- 54321

4321

321

21

1
- *****

****

***

**

*
- 1234554321

1234554321

1234554321

1234554321

1234554321
- 12345123451234512345

12345123451234512345

12345123451234512345
- ABCDE

ABCD

ABC

AB

A
- ABCDEFEDCBA

ABCDE EDCBA

ABCD DCBA

ABC CBA

AB BA

A A
- *********

*******

*****

***

*