C++ Program to Print Hello World 10 times using For Loop
Write C++ Program to Print Hello World 10 times using For Loop
// CPP Program to Print Hello World 10 times using For Loop #include <iostream> using namespace std; int main() { int i; for(i=0; i<10; i++) { cout << "Hello World" << endl; } return 0; }
Output:
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World