C Programming - Assignment 3
*WAP – Write a Program
1. WAP to print sum of all input numbers until user enters zero (use do while loop).
2. WAP to read 10 numbers from users and print their sum and average.
3. WAP to print all the numbers in between 1 to 200 which are divisible by 5 and 7.
4. WAP to find the Sum of all odd numbers in between the range of 1 to N (N is input by the
user, 1+3+5+7+…+N).
5. WAP to calculate the factorial of a given number using while loop.
6. WAP to print reverse of a given number.
7. WAP to print:
Summation of the first digit and the last digit of a given number.
Largest digit in a given number (E.g., given number is : 1234 , then 4 is larger)
8. WAP to read 5 persons height & weight and count the number of persons having weight
greater than 50 and weight less than 65.
9. Check whether the given no is perfect or not. (A perfect is number has 123=1*2*3=6 and
1+2+3 = 6).