0% found this document useful (0 votes)
4 views1 page

C Programming Assignment 3 Solutions

The document outlines a C programming assignment consisting of nine tasks. These tasks include writing programs to calculate sums, averages, factorials, and other mathematical operations, as well as handling user input and performing checks on numbers. The assignment emphasizes the use of loops and basic programming concepts.

Uploaded by

nitesh meena
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

C Programming Assignment 3 Solutions

The document outlines a C programming assignment consisting of nine tasks. These tasks include writing programs to calculate sums, averages, factorials, and other mathematical operations, as well as handling user input and performing checks on numbers. The assignment emphasizes the use of loops and basic programming concepts.

Uploaded by

nitesh meena
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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).

You might also like