Rewrite the following code using while loop statement instead of for loop statement in C++. #include using namespace std; int main() { int i,sum(0); for (i = 1; i


Rewrite the following code using while loop statement instead of for loop statement in C++.<br>#include <iostream><br>using namespace std;<br>int main()<br>{<br>int i,sum(0);<br>for (i = 1; i <= 100;i+=4)<br>{<br>sum=sum+i;<br>cout <<sum <<

Extracted text: Rewrite the following code using while loop statement instead of for loop statement in C++. #include using namespace std; int main() { int i,sum(0); for (i = 1; i <= 100;i+="4)" {="" sum="sum+i;" cout=""><" }="" retum="" 0;="">

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here