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

PGDCA Assignment on Looping Statements

This document outlines 13 programming assignments involving different looping statements in C such as do-while, while, and for loops. The assignments include printing numbers within a range using loops, checking if numbers are even or odd, printing multiples of numbers in reverse order, finding sums, factorials, Fibonacci numbers, and checking for palindromes. It also covers using infinite loops with while/break and for/continue statements. The final assignment involves nested for loops to print patterns.

Uploaded by

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

PGDCA Assignment on Looping Statements

This document outlines 13 programming assignments involving different looping statements in C such as do-while, while, and for loops. The assignments include printing numbers within a range using loops, checking if numbers are even or odd, printing multiples of numbers in reverse order, finding sums, factorials, Fibonacci numbers, and checking for palindromes. It also covers using infinite loops with while/break and for/continue statements. The final assignment involves nested for loops to print patterns.

Uploaded by

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

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

You might also like