C Programming | Area of Triangle | Coding With Sohail|

preview_player
Показать описание
#sohailnawaz
Рекомендации по теме
Комментарии
Автор

#include<stdio.h>
int main()
{
float area, base, hight;
printf("enter base\n");
scanf("%f", &base);
printf("enter hight\n");
scanf("%f", &hight);
area=(0.5*base*hight);
printf("area of triangle=%f", area);
return 0;
}





copy and try it


thanks me later.

RupenderSingh-xzti
Автор

It is for only right angled triangle not for every triangle

saurabhchauhan-vhzz