Category Archives: Basic Formula Calculation C Programs

Compute area of Triangle Input Three Sides

/* C Program how to calculate surface area of a triangle when three sides are given */ #include<stdio.h> #include<math.h> int main() { float side1, side2, side3, s, area; printf(“Enter the length of first side of triangle =”); scanf(“%f”, &side1); printf(“Enter the length of second side of triangle =”); scanf(“%f”, &side2); printf(“Enter the length of third… Read More »

Loading

Convert mm millimeter to inches

This is a simple basic C program. it takes input from user at run time. The user enters the value of mm millimeters. These millimeters are then converted into inches by using the following formula: How to convert mm millimeters to inches 1 millimeter = 0.03937007874 inches: Therefore we will use the formula for converting… Read More »

Loading