Computer Science, asked by thangu2223, 3 months ago


Convert the following mathematical expression into C equivalent (5)

area= s(s-a)(s-b)(s-c)
x = -b + b2 -4ac

Answers

Answered by jsuraj2019
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