1. Convert the following mathematical formula into appropriate C statements.
X=-b(b*b) 24ac
2a
Answers
Answered by
14
The mathematical expression will be represented as follows in C language:
void main()
{ int x, b, a, c;
printf ( "Enter the values of b, a and c respectively " );
scanf ( "%d %d %d" , &b , &a, &c );
x = - ( b * ( b* b ) * 24 * a * c ) / 2 * a ;
printf ( "%d" , x );
}
Answered by
1
"X=((-b)*b*b*24*a*c)/(2*a)" is a appropriate c-statements for the above mathematics formula.
Explanation:
Missing Information : The above question has missed the division operator in the mathematics formula.
- The above-defined expression is a statement of the defined formula which calculates the same value which is calculated by the help of formula.
- When any user wants to use the above-defined formula in the c language, then he needs to define the b and a and x variable.
- He also needs an X variable that holds the output and when he prints the value of the X variable, then he gets the output of the expression.\
Learn More :
- C-Program : https://brainly.in/question/12809215
Similar questions