#include <stdio.h>

int main()
{
     float x, y, z;

     printf("Input tall : ");
     scanf("%f",&x); //i use %f for decimal, it stands for float
     fflush(stdin);
     printf("Input length : ");
     scanf("%f",&y);
     fflush(stdin);

     z = 0,5 * x * y; //its the formula for find triangle
     printf("The area of triangle is : %2f", z); //%2f means it takes 2 decimal

     getchar();
     return 0;
}

Category: | 0 Comments