#include <stdio.h> int main (void) { double base, height, area; float z; printf("Enter the Triangle's Base: "); scanf("%lf",&base); printf("Enter the Height: "); scanf("%lf",&height); area = 0.5*base*height; printf("The area of the Triangle is: %lf\n", area); system("pause"); return 0; }
0 comments:
Post a Comment