Interview Question


Loop programming exercises and solutions in C


1.     C program to print ODD numbers from 1 to N using while loop.
2.     C program to print all natural number in reverse (from n to 1) using loop.
3.     C program to print all uppercase alphabets using while loop.
4.     C program to print all lowercase alphabets using while loop.
5.     C program to count the no of digit in a number.
6.     C program to print numbers from 1 to 10 using while loop.
7.     C program to find first and last digit of a number.
8.     C Program to print tables from numbers 1 to 20.
9.     C program to find sum of first and last digit of a number.
10.  C Program to check entered number is ZERO, POSITIVE or NEGATIVE until user does not want to quit.
11.  C Program to find factorial of a number.
12.  C Program to calculate sum of digits of a number
13.  C Program to find sum of first N natural number, N must be taken by the user.
14.  C program to print all prime numbers from 1 to N.
15.  C program to print all even and odd numbers from 1 to N.
16.  C program to print all Armstrong numbers from 1 to N.
17.  C program to print square, cube and square root of all numbers from 1 to N.
18.  C program to print all leap years from 1 to N.
19.  C program to accept a number and print in reverse order.
20.  C program to print all upper case and lower case alphabets.
21.  C program to find the frequency of each digit in a given integer.
22.  C program to read age of 15 person and count total Baby age, School age and Adult age.
23.  C program to read an integer and print its multiplication table.
24.  C Program to enter a number and print it in words.
25.  C program to display sum of prime no from given no(1 to n).
26.  C program to check whether number is strong number or not.


Comments

Popular posts from this blog

C&C++ programming tricky questions

c programming

pointer in c