Question: Convert the code section below into Do While Loop. #include void main() { int i,sum=0; for(i=1;i
Convert the code section below into Do While Loop.
#include
void main()
{
int i,sum=0;
for(i=1;i<=10;++i)
{
sum=sum+i;
cout<< <
}
cout< }
Step by Step Solution
There are 3 Steps involved in it
Lets convert the given for loop into a dowhile loop The intenti... View full answer
Get step-by-step solutions from verified subject matter experts
