# Category: “C’ Examples

## Program to check whether the input alphabet is vowel or not by using if else and switch statements.

Problem Analysis: The problem is to check whether the input alphabets is vowel or not by using if else and switch statements.   Algorithm 1: …

## Program to print the size of char,float.double,and long double data types in C.

Problem Analysis: The problem is to print the size of char,float,double and long double data types in C. The output is to print the size…

## Program to check and detect whether the number is odd or even given by the user.

Problem Analysis: The problem is to check the given numbers are odd or even having the parameters a. The output is to print the numbers…

## Program to swap the two variables values within and without third variables.

Problem Analysis: The problem is to swap the variables values with and without using third variables having parameters a,b,c,d,e . The output is to print…

## Program to prompt the user to input 3 integers values, and to print the values in forward and reverse order.

Problem Analysis: The problem is to print the given integers in both forward and the reverse orders. Algorithm: 1.start 2.Input the integer by user. i.e.…

## Program to declare two integers and one float variables then initialize them to 10,15 and 12.6 and also print the variables in the screen.

Problem Analysis: The problem is to declare the two integer and one float variables then intitialize them to 10,15 and 12.6.The output is to print…

## Program to calculate the simple interest for a given p=4000,t=2 yrs,r=5.5%(I=p*t*r/100)

Problem Analysis: The problem is to calculate the simple interest having the parameters principal(p),time(t), and radius(r).The output is to display the simple interest. The formula…

## program to calculate the area of ellipse having its axe’s (minor=4cm and major=6cm).

Problem Analysis: The problem is to calculate the area of the ellipse having parameters minor axis(a) and major axis(b).The output is to display the area…

## Program to calculate the area of circle having its radius(r=5cm).

Problem Analysis: The problem is to calculate the area of circle having input parameters radius(r).The output is to display the area of the circle.Here PI…

## Program to multiply two numbers and display it’s product.

Problem Analysis: The problem is to calculate the product of two input integers a and b.The output of the program is to display the product…