Computer Science, asked by sammy8914, 9 months ago

Convert the following mathematical formula into appropriate c state(-b(b×b)24 ac)÷2a

Answers

Answered by AwaisFarooqi
0

Answer:

The correct Answer is = -12b^3 c.

Explanation:

Given Data:-

(-b(bxb)24 ac) / 2a.

=(-b(b^2)24 ac) / 2a.

= (-24b^3 ac) / 2a.

= -12b^3 c.

Answered by StaceeLichtenstein
1

x1 = - ( b * ( b* b ) * 24 * a * c ) / (2 * a) ;   is the correct answer to the given question

Explanation:

  • In this question we have to converted the statement that is mention in the question in the corresponding C programming statement .
  • Following are the program that converted the given statement into the C programming language .

#include <stdio.h> // header file

int main() // main function

{

int x1, b, a, c;  // variable declaration

printf ( "Enter the values:" );  

scanf ( "%d %d %d" , &a , &b, &c ); // Read the value by user

 x1= - ( b * ( b* b ) * 24 * a * c ) / (2 * a) ;

 printf ( "%d" , x1 ); // display

return 0;

}

Following are the description of program

  • In this program we have declared the four value of int type .
  • Read the value of variable "a","b" and "c" by using scanf.
  • The integer 'x1" will hold the result of statement  that is mention in question .
  • Finally we print the value of variable "x1".

Similar questions