I need the answer quickly Q3/ Read the following code carefully, and then program the same idea using the do-while loop: #include int main () { int sum = 1; double fact = 1; for ( int i = 1; i

I need the answer quicklyQ3/ Read the following code carefully, and then program the same idea using the do-while loop:<br>#include <iostream.h><br>int main ()<br>{<br>int sum = 1;<br>double fact = 1;<br>for ( int i = 1; i<= 10 ; i++)<br>{<br>sum += i;<br>fact *= i;<br>}<br>cout <<

Extracted text: Q3/ Read the following code carefully, and then program the same idea using the do-while loop: #include int main () { int sum = 1; double fact = 1; for ( int i = 1; i<= 10="" ;="" i++)="" {="" sum="" +="i;" fact="" *="i;" }="" cout="">< "="" the="" sum="" is="">< sum;="" cout="">< "="" the="" fact="" is="" "="">< fact;="" return="" 0;="">

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here