Prog 3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

0uFSTl0t 3 _ Write a function to evaluate

and display the area of a triangle whose


sides are given ?

S0luTl0t

#incIude<stdio.h>
#incIude<conio.h>
void main()
{
int a=4,b=5,c=6,area;
cIrscr();
printf(" sides is =\n%d\n%d\n%d\n",a,b,c);
area=(1*c*b)/2;
printf(" Area of triangIe is =%d\n ",area);
getch();
}

OU97U9

OIdoi Ii =

4
5
o

uoa oJ euIaagIo Ii = I5

You might also like