ITERATIVE CONTROL STRUCTURE (LOOPS)

25 programming challenges to help you master the fundamentals of C LANGUAGE.

1

Enter a number from the user and find out the binary of that number ?

2

Enter a number from the user and check that the number is divisible by any prime number or not ?

3

Enter a number from the user and check it is a prime number or not ?

4

Enter a number from the user and print all digit of the number in separate line ?

5

Write a program to print your name 1 lakh times ?

6

Write a program to print a series 1 to 1 lakh ?

7

Enter a number from the user and print the series from 1 to that number ?

8

Enter a number from the user and print that number 100 time ?

9

Write a program print all the odd number between 1 to 100 ?

10

Write a program print the table of 4 in the format given as below (till 20)? 4*1=4 and so on

11

Enter the number from user and reverse the number?

12

Enter a number from the user if the user enter 1 then you will perform addition operation by entering 2 number from user add it and display answer. if user enter 2 then subtract or if user enter 3 then multiply or if user enter 4 then divide or if user enter 5 then modulo or if any other number then print invalid .if user want to quit the program then user will enter Q. ?

13

Enter the number from user and check its palindrome or not?

14

Enter two numbers from users, one is base and second is power. Write the result ?

15

Enter a number from user and print first digit of number ?

16

Enter a number from user and print total from 0 to that number ?

17

Enter a number from user and find out factorial of that number ?

18

Enter two numbers from user and print range from first number to second number ?

19

Enter password from user maximum 20 digits / character press enter key if you want to exit ?

20

Write a program to print the counting 1 to 100 with one second delay ?

21

Write a program to find out the Fibonacci series/ 1 to 100 (like 0 1 1 2 3 5 8 13………..) ?

22

Enter a character from user and that character should be alphabet ?

23

Check numbers from user is palindrome or not ?

24

Enter a number from user and check it is Armstrong number or not ?

25

Enter a number from user and check it is Armstrong number or not ?