Top 20 C Programs
Hello World in Program in C
Hello World in C Language
WAP that calculates the Simple Interest and Compound Interest. The Principal, Amount, Rate of Interest and Time are entered through the keyboard.
Sum and Percentage marks Program in C
WAP that accepts the marks of 5 subjects and finds the sum and percentage marks obtained by the student.
WAP to calculate the area and circumference of a circle.
Centigrade into Fahrenheit Program in C
WAP that accepts the temperature in Centigrade and converts into Fahrenheit using the formula C/5=(F-32)/9.
Swap using a third variable Program in C
WAP that swaps values of two variables using a third variable.
Numbers equal or not Program in C
WAP that checks whether the two numbers entered by the user are equal or not.
Greatest of three numbers Program in C
. WAP to find the greatest of three numbers.
Even or Odd Program in C
WAP that finds whether a given number is even or odd.
Leap year Program in C
WAP that tells whether a given year is a leap year or not.
Percentage and Grades Program in C
WAP that accepts marks of five subjects and finds percentage and prints grades according to the following criteria: Between 90-100%————–Print „A‟ 80-90%—————————-Print „B‟ 60-80%—————————Print „C‟ Below 60%———————-Print „D‟
WAP that takes two operands and one operator from the user and perform the operation and prints the result by using Switch statement.
WAP to print the sum of all numbers up to a given number.
Factorial Program in C
WAP to find the factorial of a given number.
Sum of even and odd numbers Program in C
WAP to print sum of even and odd numbers from 1 to N numbers.
Fibonacci series Program in C
WAP to print the Fibonacci series.
Prime Number Program in C
WAP to check whether the entered number is prime or not.
Sum of digits Program in C
WAP to find the sum of digits of the entered number.
Reverse of a number Program in C
WAP to find the reverse of a number.
Armstrong numbers Program in C
A positive number is called armstrong number if it is equal to the sum of cubes of its digits.
WAP to convert binary number into decimal number and vice versa.
WAP that inputs two arrays and saves sum of corresponding elements of these arrays in a third array and prints them.
WAP to find the minimum and maximum element of the array.