CBbrandon6724 CBbrandon6724
  • 12-10-2017
  • Computers and Technology
contestada

"write a program that reads two floating point numbers and prints their sum difference and product."

Respuesta :

W0lf93
W0lf93 W0lf93
  • 21-10-2017
int main() { float a; float b; float sum; float difference; float product; printf("enter 2 numbers"); scanf("%f%f",&a,&b); sum= a + b; difference = a - b product =a*b; printf("\nsum: %f" , sum); printf("\ndifference: %f, difference); printf("\nproduct : %f, product ); }
Answer Link

Otras preguntas

which fraction is not equivalent to 9/12 24/32 6/8 5/20 16/24
Which of the following is the BEST example of positive peer pressure? A) your friend says “no thanks” to the dinner your dad cooked and prefers to hang out with
Which of the following is NOT an example of scarcity?Select the correct answer below:A) Due to a lack of rain in San Diego, California, the amount of water for
Divide 500 in the ratio 3:1:4
What is true of enzymes? They only slow down reactions. They act as catalysts, each for one specific reaction. They only speed up reactions. They speed up or s
if c is the hypotenuse of a right triangle, find the missing side. if necessary, round to the nearest hundredth a=6 b=3 c= ?​
The area of a rectangle is 16 square units. Use the grid to draw what the rectangle could look like.
are only tangible goods are scarce ?​
(-3, 4) is one of many solutions to the inequality: 2x + y > -2. True or false
simplify -12x^4/x^4+8x^5 brainly What is x