Convert the following mathematical expression into C equivalent (5)
area= s(s-a)(s-b)(s-c)
x = -b + b2 -4ac
Answers
Answered by
6
Answer:
#include <stdio.h>
##include <conio.h>
void main()
{
float area,x ;
flat s,a,b,c;
printf(" enter the value of a\n");
scanf("%f",&a);
printf(" enter the value of b\n");
scanf("%f",&b);
printf(" enter the value of c\n");
scanf("%f",&c);
printf(" enter the value of s\n");
scanf("%f",&s);
area=area= s(s-a)(s-b)(s-c) ;
x= -b + b2 -4ac;
scanf("%f",&area);
scanf("%f",&x);
}
getch();
Similar questions
Math,
2 months ago
English,
4 months ago
Math,
4 months ago
Computer Science,
9 months ago
English,
9 months ago