Assignment – 4: Looping Statements: do-while, while and for loops:
1. Write a C- program to print the numbers 1 to 10 using all the loops.
2. Write a C- program to check whether an integer is even or odd for a given range of first ten
integers using for loop.
3. Write a C- program to print the multiples of 9 between 1300 and 1500 in a reverse order using
while loop.
4. Write a C- program to print the multiples of 7 for an inputted range of integers using do - while
loop.
5. Write a C- program to find the sum of squares of first ‘n’ integers.
6. Write a C- program to print the multiplication table for an inputted integer.
7. Write a C- program to print the sum of even and odd numbers for an inputted range of integers.
8. Write a C- program to find the factorial of given integer.
9. Write a C- program to print the first ‘n’ Fibonacci numbers for an inputted integer ‘n’.
10. Write a C- program to check whether the inputted number is a Palindrome or not.
11. Write a C- program to demonstrate the use of Infinite loops using while and break statement
(without using Switch case).
12. Write a C- program to demonstrate the use of the use of Infinite loops using for and continue
statement.
13. Patterns : Nested for – loops