Suppose that the input is XXXXXXXXXX –1 . What is the output of the following code? (2, 3) Submit your answer to dropbox. int num=0; int sum; cin>>sum; while(num !=-1) { cin>>num; sum=sum +...


Suppose that the input is0 5 6 4 9 8 –1. What is the output of the following code? (2, 3) Submit your answer to dropbox.


int num=0;


int sum;


cin>>sum;


while(num !=-1)


{


cin>>num;


sum=sum + 2*static_cast(sqrt(num));


}


cout<><><>



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here