Rewrite the following while loop as for statement:
int counter = 1, sum = 0;
while ( counter <= 50 )
{
sum += counter;
counter += 2;
}
Answers
Answered by
2
Always keep smiling and be happy. Thanks....
Attachments:
Similar questions