Logo

Programming-Idioms

History of Idiom 2 > diff from v41 to v42

Edit summary for version 42 by :
[Cpp] Added imports needed to run the code

Version 41

2016-02-18, 17:17:46

Version 42

2016-03-16, 19:03:43

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Imports
Imports
#include <iostream>
using namespace std;
Code
for(int i=0;i<10;i++)
  cout << "Hello";
Code
for(int i=0;i<10;i++)
  cout << "Hello";