C Logical Programs Archive

C program to find area of a triangle

Input             Enter base of the triangle: 10             Enter height of the triangle: 15 Output             Area of the triangle = 75 sq. units Formula to calculate area area = (base * height) / …

C program to find area of an equilateral triangle

Input             Enter side of the equilateral triangle: 10 Output             Area of equilateral triangle = 43.3 sq. units Area of an equilateral triangle is given by formula: area = (sqrt(3) / 4) * (side …

C Program to Find Total Average and Percentage

Input             Enter marks of five subjects: 95 76 85 90 89 Output             Total = 435             Average = 87             Percentage = 87.00 Process: Input marks of five subjects. Store into variables like …

C program to find simple interest

Input             Enter principle: 1200             Enter time: 2             Enter rate: 5.4 Output                       Simple Interest = 129.600006 Find simple interest using formula SI = (principle * time * rate) / 100.

Courses Enquiry Form