Computer Science, asked by akhileshkumarsingh11, 3 days ago

Rewrite the following while loop as for statement:
int counter = 1, sum = 0;
while ( counter <= 50 )
{
sum += counter;
counter += 2;
}

Answers

Answered by beherarajani620
2

Always keep smiling and be happy. Thanks....

Attachments:
Similar questions