C Programming

500+ C programs examples with output.

Basic Programs
1.Write a C program to print “Hello World” on screen.
2.Write a C program to perform basic functionality of calculator.
3.Write a C program to find the simple interest.
4.Write a C program to find the area of circle.
5.Write a C program to find the sum and percentage of marks.
6.Write a C program to swap the two numbers.
7.Write a C program to swap the two numbers without using third variable.
8.Write a C program to add the entered digit’s number.
9.Write a C program to calculate quotient and remainder.
10.Write a C program to find the ASCII value of a character.
11.Write a C program to calculate the size of data type.
12.Write a C program to find the greatest number among three numbers.
13.Write a C program to find the number is even or odd.
14.Write a C program to find that it is leap year or not.
15.Write a C program to calculate the power of a number.
16.Write a C program to calculate the square root of a number.
17.Write a C program to calculate the salary with bonus.
18.Write a C program to calculate the gross salary of an employee.
19.Write a C program to find the right place for traveling.
20.Write a C program to calculate the division of a student.
21.Write a C program to calculate the division of a student using and operator.
22.Write a C program to calculate the division of a student using else-if.
23.Write a C program to display the number which is entered through keyboard.
24.Write a C program to show the working of conditional operator.
25.Write a C program to display the name of week by number entered through the keyboard.
26.Write a C program to perform the action according to user choice.
27.Write a C program to print 1 to 10 numbers.
28.Write a C program to calculate the sum of 1 to 100 numbers.
29.Write a C program to display the table of a given number.
30.Write a C program to find the length of a given number.
31.Write a C program to display whether number is prime or not.
32.Write a C program to display whether number is prime or not (while-loop).
33.Write a C program to perform the operation more than one times.
34.Write a C program to show the functionality of goto function.
35.Write a C program to use function.
36.Write a C program to calculate sum of two number using another function.
37.Write a C program to display the trigonometry functions.
38.Write a C program to calculate the square of a number using function.
39.Write a C program to display the functions of pointer.
40.Write a program to swap the two numbers using function.
41.Write a program to find the factorial of a number.
42.Write a program to find the factorial of a number using function.
43.Write a program to show the functioning of gets and puts.
44.Write a program to display the string and character.
45.Write a program to calculate the length of string.
46.Write a program to copy the string.
47.Write a program to join two strings.
48.Write a program to compare two strings.
49.Write a program to display A to Z characters.
50.Write a program to print a to z or A to Z by user choice.