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 of the following political philosophers put forth the belief that “people can replace a ruler who fails to do his duties”?
Which best describes why a liquid needs a container when a solid does not?
The population of a city has increased by 36% since it was last measured. If the current population is 51000 , what was the previous population?
Which phrase best complete the sentence? Ingrid: Wenn ich eine Arbeit bekomme, __________________________. A. muss ich die Einkommenssteuer bezahlen B.
3371 divide by 33 is ?
lf the attractive forces among the solid are less than the attractive forces between the solid and a liquid, the solid will? A) dissolve as particles are pulle
CAN ANYONE HELP ME THANK YOU
Which factor created a risk of a war between the Allies and the Soviet Union? A. the Soviet annexation of Eastern Romania B. the signing of the Warsaw Pact in
Which sentence below contains a prepositional phrase? A. He longed to see his wife and son one last time before he left for his journey. B. Cathy stood and watc
If 38 students take a test and 23 passed what is the percentage pass rate?