For Solution call and mail: Mo.No.:9810301034, g9_sharma@yahoo.com
Iteration (Loop – For ,While, Do
While, Nested)
Set
1
1.
WAP
to display all number from 1 to 15.
2.
WAP
to display sum of all numbers from 1 to 10.
3.
WAP
to display Average of numbers from 1 to 6.
4.
WAP
to display multiply all numbers from 1 to 10.
5.
WAP
to display Square all numbers from 1to 7.
6.
WAP
to display Cube all numbers from 1to 8.
7.
WAP
to display all odd numbers from 1to 8
8.
WAP
to display all even numbers from 1to 8
9.
WAP
to display all prime numbers from 1to 8
Set
2
1.WAP to display all numbers from 1 to N.
2.WAP to display Sum number from 1 to N.
3.WAP to display Average number from 1 to N.
4.WAP to display Multiply number from 1 to N.
5.WAP to display Square Number from 1 to N.
6.WAP to display Cube all numbers from 1to N.
7.WAP to display all odd numbers from 1to N
8.WAP to display all even numbers from 1to N
9.WAP to display all prime numbers from 1to N
10. WAP to display all 2 digit
numbers from 1to N
Set
3
1.WAP to display of numbers from N to M.
2.WAP to display Sum of numbers from N to M.
3.WAP to display Average of numbers from N to M.
4.WAP to display multiply of numbers from N to M.
5.WAP to display Square of numbers from N to M.
6.WAP to display Cube number from N to M.
7.WAP to display all odd numbers from N to M.
8.WAP to display all even numbers from N to M.
9.WAP to display all prime numbers from N to M.
10. WAP to display all 2 digit
numbers from N to M.
Set
4
1.
WAP
to display even factors of a given number till N.
2.
WAP
to display odd factors of a given number till N.
3.
WAP
to display factorial of a given numbers.
4.
WAP
to check given number is prime or not
5.
WAP
to check given two number are twin prime or not
6.
WAP
to check given numbers is perfect no or not.
Set
5
1.
WAP
to display result xn.
2.
WAP
to display result (x+1)n
3.
WAP
to display A if A=P[1+r/100]n
4.
WAP
to display Even and Odd numbers from N to M.
5.
WAP
to count Even and Odd numbers from N to M.
6. WAP
to Add Even and Odd numbers in different variable from N to M.
7.
WAP
to calculate HCF(GCD) and LCM of two numbers
8.
WAP
to check max, min number in given 10 numbers
Set
6
1.WAP to display Reverse of a given numbers.
2.WAP to sum of all digit of a given numbers.
3.WAP to sum of all Even digit of a given numbers
4.WAP to sum of all odd digit of a given numbers
5.WAP to sum of all prime digit of a given numbers
6. WAP
to print of all digit of a given numbers in different line
7.WAP to check given number is palindrome or not.
8.WAP to check given number is Armstrom or not.
9.WAP to check given number is duck or not.1034
10.
WAP
to check given number is unique number or not.
11.
WAP
to check given number is BUZZ or not.endwith and divisible by 7
12.
WAP
to check given number is Composit number or not.(A
number said to be a composit number if its has one or more then one factor
excluding 1 ant the number itself like 4,6,8,9,…..)
13.
WAP
to Find smallest digit of a number.
14.
WAP
to Find higest digit of a number.
15.
WAP
to chack a numbers is strong numbers or not
16.
WAP to chack all digit of numbers
ascending order or not.
17.
WAP to chack all digit of numbers
decending order or not.
Set
7
1.
WAP
to display prime number between 1 to 1000
2.
WAP
to display perfect number between 1 to 100
3.
WAP
to find out all the Armstrom numbers between 1 to 1000
4.
WAP
to find out all the perfect numbers between 1 to 1000
5.
WAP
to find out all the palindrome number between 100 and 500.
Set
8
1)
WAP
to print Fibonacci series of n terms where n is input by user : 0, 1, 1, 2, 3, 5, 8, 13, 21,.. to N items
2)
WAP
to read WAP to display to check a number is automorphic or
not.Ex.(25)2= 625
3)
WAP
to chack a numbers is Special numbers or not
(a
number is called as Special if it is equal to sum of the factorials of its
digits. Example : 145=1!+4!+5!)
4)
WAP
ti check a two digit number is special , addition of all digit and multiplication of both digits
then add addition and multiplication we get same number. Ex. 59, 5+9=14, 5*9=45, 14+45=59
5)
WAP
of ISBN is unique number or not: The ISBN is based upon a 10-digit code. The
ISBN is Legal if
1*digit1+2*digit2+3*digit3+4*digit4+5*digit5+6*digit6+7*digit7+8*digit8+9*digit9+10*digit10
Ex:
for and ISBN
1401601499
Sum=
1*1+2*4+3*0+4*1+5*6+6*0+7*1+8*4+9*9+10*9=253 which divisible by 11.
1. Input ISBN number.
2. If the ISBN is not a 10-digit
integer,output Illegal ISBN.
3. If the ISBN is 10 digit integer
or not divisible by 11 display Illegal
ISBN else Legal ISBN.
6. WAP to print the following
series
1)
2,4,6,8,10……………n
2)
1,5,9,13……………….n
3)
1,4,9,16……………….n
4)
1,2,4,7,11,………………n
5)
1,8,27,64……………..n
6)
0,3,8,15,24,…..n
7)
3,6,9,12,…………….n
8)
2,5,10,17…………n
9)
0,7,26,……………n
10)
1,9,25,49,………………n
11)
0,3,8,15,……………..n
12)
24,99,224,399,………n
13)
Sum=2-4+6-8+……..to n
14)
Sum=1+12+123+1234+….n
15)
Sum=1+11+111+1111+…n
16)
Sum=3+33+333+3333+….n
17)
Sum=1*2+1*2*3+1*2*3*4+…
18)
Sum=1*2+2*3+3*4+………
19)
n term ….
99,80,63,…..0..n2-1
20)
S=1/2+3/4+5/6+7/8+………19/20
21)
S=1/2-3/4+5/6-7/8+………19/20
====================================================================================================
22)
S=2-4+6-8+……..-20
23)
s=1/1+11/12+111/123+….n
24)
S=x/1+x/2+x/3+……..n
25) s=1 + 1/2 + 1/3 + 1/4 + 1/5 +….1/n .
28)
s=1 - 1/2 + 1/3 - 1/4 + 1/5 -……1/n .
29)
S =
1+x+x2/2+x3/3+x4/4+….xn/n
30)
S =
1+x/1+x2+x3+x4+….xn
31)
1/1!,3/3!,5/5!,7/7!,9/9!……n/n!
32)
a/1!,a3/3!,a5/5!,a7/7!,a9/9!…an/n!
33)
S=x+x2 / 2! + x3/3! +……+ xn /
n!
34)
S=ax/1!+ax2 / 2! + ax3/3! ++ axn /
n!
35)
S=x/1!+x2 / 2! + x3/3! +…+ xn /
n!
36)
S=x+x2 / 2! + x3/3! +……+ xn /
n!
37)
S=x+ x2 / 3 + x3/5 +…+ xn /
2n-1
38)
S=x/1!+ x2 / 3! + x3/5! ++ xn / 2n!-1
Comments