Here are two questions that might help you in understanding the working of loops. For loop, while loop and do while loop. You just need to dry run them.
Write a loop to print all numbers from 1 to 100, one per line, Write a blank line after every five lines.
#include <iostream.h>void main ( ){ int i, x=1; for (i=1; i<=100; i=i++) { cout << i << endl; ...