#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