Programming in c
Programming in c
Programs:
1. Write a C Program to Check if a Number is Positive, Negative, or Zero.
2. Write a C Program to calculate sum of digits of a number.
3. Write a C Program to find sum of all even numbers between 1 to n, where n will be taken an input.
4. Write a C Program to enter a number and print its reverse using while loop.
5. Write a C Program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer.
Calculate percentage and grade according to following:
Percentage >= 90% : Grade A Percentage >= 80% : Grade B Percentage >= 70% : Grade C Percentage >= 60% :
Grade D Percentage >= 40% : Grade E Percentage < 40% : Grade F
6. Write a C Program to SWAP two variables number by using third variable.
7. Write a C Program to check if a number is divisible by 5 and 11.
8. Write a C Program to check whether a 3-digit number is Armstrong number or not.
(3-digit Armstrong number is a number that is equal to the sum of cubes of its digits ex: 153, 370)
9. Write a C Program to check whether a number is Prime number or not.
10. Write a C Program to Calculate the Factorial of a Number using For loop.