Skip to main content

PRACTICE QUESTIONS SET 4 (LOOPING)


LIST OF PROGRAMS


1.         WAP to find the factor of a No.
2.         WAP to find the sum of factors of a No.
3.         WAP to find the print of even factors.
4.         WAP to print the odd factors of a no.
5.         WAP to find the sum of even factors of a no.
6.         WAP to find the sum of odd factors of a no.
7.         WAP to input a no and check whether its is perfect on not.
(Sum of factors of a no excluding the no. is equal to the no.
8.         WAP to input a no and check whether it is prime or not.
(No which has two factors one and no itself)
9.         WAP to print the factors, which are prune.
10.       WAP to count the no of even factors of a no.
11.       WAP to count the no of odd factors of a no.
12.       WAP to count the no of prime factors of a no.
13.       WAP to find the HCF and LCM of two no.
14.       WAP to find the factorial of a no.
15.       WAP to input x and y and find the value of x.
16.       WAP to input the no and find the length of the no. (Count the digits)
17.       WAP to input a no and print the no in reverse order.
18.       WAP to input a no and check whether it is palindrome no or not.
19.       WAP to find the sum of digits of a no.
20.       WAP to find the sum of first and last digit of a no.
21.       WAP to print the prime digits of a no.
22.       WAP to find the square of each digit of no.
23.       WAP to find the cube of each digits of a no.
24.       WAP to print the factorial of each digit of a No.
25.       WAP to find the sum of even digits of a no.
26.       WAP to find the sum of odd digits of a no.
27.       WAP to find the sum of prime digits of a no.
28.       WAP to count how many even digits arc there in a no.
29.       WAP to count how many odd digits are there in a no.
30.       WAP to count how many prime digits are there in a no.
31.       WAP to find the sum of square of each digit of a no.
32.       WAP to find the sum of cube of each digit of a no.
33.       WAP to find the sum of factorial of each digit of a no.
34.       WAP to find the sum of square of odd digits of a no.
35.       WAP to find the sum of cube of even digits of a no.
36.       WAP to find die sum of cube of odd digits of a no.
37.       WAP to count the no of factors of a no.
38.       WAP to print the factors of each digit of a no.
39.       WAP to input a no and find the smallest digit of a no (without Array)
40.       WAP to input a no and find the largest digit of a no (without Array)
41.       WAP to input a no and arrange the digits in ascending order.
42.       WAP to input a no and arrange the digits in descending order.
43.       WAP to input a No and find the smallest no formed from the No.
44.       WAP to input a No and find the largest no formed from the No.
45.       WAP to input a no and check whether it is Armstrong No not.
46.       WAP lo input a no and check whether it is special on not.
47.       WAP to input n no check whether it is automophic on not.
48.       WAP to input a no and check weather it is Magic no on not.
49.       WAP to input on and check weather it is a sunny no or not.
(Square root (N) + 1) equal an integer.
50.       WAP to input a No and find the frequency of each digit of a No.

Comments

Popular posts from this blog

unix commands