Top 20 C Programs

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.

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.

WAP that accepts the temperature in Centigrade and converts into Fahrenheit using the formula C/5=(F-32)/9.

WAP that swaps values of two variables using a third variable.

WAP that checks whether the two numbers entered by the user are equal or not.

. WAP to find the greatest of three numbers.

WAP that finds whether a given number is even or odd.

WAP that tells whether a given year is a leap year or not.

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.

WAP to find the factorial of a given number.

WAP to print sum of even and odd numbers from 1 to N numbers.

WAP to print the Fibonacci series.

WAP to check whether the entered number is prime or not.

WAP to find the sum of digits of the entered number.

WAP to find the reverse of a number.

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.

YouTube