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

The quantity “one mole” will not be equal to a. 22.4 L of H₂(g) at STP b. 6.02 x 10²³ carbon atoms c. 64 grams of SO₂(g) d. 36 grams of H₂O e. 207 grams of Pb
The receptive surface for pollen on an angiosperm flower is the (A) anther (B) corolla (C) ovary (D) style (E) stigma
why do ecologist make models?
what does πr² mean and how do I solve it
solve for x of (8x+30)°(4x+18)°
how do I factor this polynomial? q^2-121
A square and a circle have equal areas. Which shape has shorter perimeter?
solve for x of (8x+30)°(4x+18)°
What is the slope-intercept form of 8x - y - 6 = 0? Can anyone explain how to make it step by step?
Find two numbers whose product is -140 and sum is -4.