Loop Programming Exercises and Solutions in C - Codeforwin
Loop Programming Exercises and Solutions in C - Codeforwin
1. Write a C program to print all natural numbers from 1 to n. - using while loop
2. Write a C program to print all natural numbers in reverse (from n to 1). - using while loop
3. Write a C program to print all alphabets from a to z. - using while loop
4. Write a C program to print all even numbers between 1 to 100. - using while loop
5. Write a C program to print all odd number between 1 to 100.
6. Write a C program to find sum of all natural numbers between 1 to n.
7. Write a C program to find sum of all even numbers between 1 to n.
Recommended posts
Basic programming exercises and solutions in C.
Bitwise operator programming exercises and solutions in C.
If else programming exercises and solutions in C.
Switch programming exercises and solutions in C.
Conditional operator exercises and solutions in C.
Array programming exercises and solutions in C.
String programming exercises and solutions in C.
Function and recursion programming exercises and solutions in C.