-
-
Save programmingfaster0226/8b1e1aa69a3ff7c119beaec3550a83f7 to your computer and use it in GitHub Desktop.
programmingfaster.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
void main() | |
{ | |
float height,base,area; | |
printf("enter height of a triangle"); | |
scanf("%f",&height); | |
printf("\n enter the base of a triangle"); | |
scanf("%f",&base); | |
area=0.5*base*height; | |
printf("the area of the triangle is:%.2f",area); | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment