Tuesday, 22 April 2014

C Program to Calculate Area of Right angle Triangle

#include<stdio.h>
#include<conio.h>
void main()
{
int base,height;
float area;
clrscr();  // Clear Screen

printf("nEnter the base of Right Angle Triangle : ");
scanf("%d",&base);

printf("nEnter the height of Right Angle Triangle : ");
scanf("%d",&height);

area = 0.5 * radius * radius;

printf("nArea of Right Angle Triangle : %f",area);
getch();
}

No comments:

Post a Comment