Show the output displayed by the program lines below when th

Show the output displayed by the program lines below when the data entered are 3.0 and 5.0.

Solution

Answer :

a= -2.0

b= -10

Explanation :

cout <<\"Enter two number :\";

cin >> a >> b; //3.0 5.0

a= a - 5.0; // a= 3.0 - 5.0; a= -2.0;

b= a * b; // b= -2.0 * 5.0; b= -10;

o/p:

a= -2.0

b= -10

 Show the output displayed by the program lines below when the data entered are 3.0 and 5.0. SolutionAnswer : a= -2.0 b= -10 Explanation : cout <<\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site