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

Write an expression showing a÷(b+2) as a fraction?​
Is carbon moving into the air moving out of the air or both
Which statement described asteroid and comets ? A. Both asteroids and comets are solids B. Both asteroids and comets are gaseous C. Asteroids are solid and c
Fairview is 15 kilometers due north of the airport, and Lowell is due east of the airport. If the distance between Fairview and Lowell is 17 kilometers, how far
help!!differentiate[tex] { {e}^{x} }^{2} log_{10}(2x) [/tex]​
what is 2x + 20 + 2x = 60
A baseball diamond is shown in the diagram below. The shape of the outfield is 40% of a circle with a radius of 225 ft, and distance of 300 ft from the home pla
Find the surface area of each pyramid round to the nearest tenth if necessary
HELPPP ME PLSSS QUICK I WOULD PUT YOU BRAINLEST IF YOUR CORRECT PLS HELP NO SCAMS PLSS HELPP Find the midpoint of the segment below and enter its coordinates as
What would have happened if John Stone had chosen a different adjective such as serious? It would not have the same depth of meaning. The meaning would stay exa