#include <iostream>
using namespace std;
int main(){
	cout << "Loop 1 \n"; 
	for(int i = 1; i <= 10; i++){
		cout << i << endl; 
	}

	cout << "\n Loop2 \n";
	for(int i = 1; i <= 10; i += 2 ){
		cout << i << endl; 
	}

	cout << "\n Loop3 \n";
	for(int i = 1; i >= -10; i-- ){
		cout << i << endl; 
	}

	cout << "\n Loop4 \n";

	int total = 0;
	for(int i = 1; i <= 10; i++, total += i){
		cout << i << " || " << total << endl; 
	}
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: