PracticeQuestions Loops-1
PracticeQuestions Loops-1
Subsequent terms are found by adding the preceding two terms in the sequence. Write a C program to
/* Write a C program, which takes two integer operands and one operator form the user, performs the
operation and then prints the result. (Consider the operators +, -, *, /, % and use Switch Statement)
Factorial of 5= 5X4X3X2X1=12
Factorial of 4= 4X3X2X1=12
Factorial of 3=3X2X1=6
Factorial of 0 is 1
2 4
3 9
4 16 */
2 8
3 27
4 64 */
/* WAP in c to display odd natural numbers from 1 to 100. Also print their sum and average */
/* WAP in c to display even natural numbers from 1 to 100. Also print their sum and average */