..

FreePrograms


C programming Tutorial 

Free C Programs, C Programs Download


Embedded C lang & 8051(Embedded Products)


  CONTACT US   ABOUT US   PRIVACY  DISCLAIMER

FREE C PROGRAMS 

What is C C vs C++ vs Java Program Structure Data Types in C Basic Rules of C & C++
Functions in C If, Else Conditions Loops in C Switch Case Arrays
Pointers Structures in C Strings in C Command Line Arguments Type Casting
Linked Lists Recursion Binary Trees Inheritance Multiple Inheritance
Templates File I/O Object Oriented Programming  Data Structures in C C interview Questions

/* Program to calculate area of triangle and its circumference.*/


#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
float s,a,b,c,area,circumference;
clrscr();
printf("enter value of a:");
scanf("%f",&a);
printf("enter value of b:");
scanf("%f",&b);
printf("enter value of c:");
scanf("%f",&c);
s=(a*b*c)/2;
area=sqrt(s*(s-a)*(s-b)*(s-c));
circumference=a+b+c;
printf("value of area is %f",area);
printf("value of circumference is %f",circumference);
getch();
return 0;
}
 

COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM