Skip to content

Instantly share code, notes, and snippets.

@jahlelin
Created July 20, 2019 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jahlelin/be697086e0c1a725b4c1418625dd5f3c to your computer and use it in GitHub Desktop.
Save jahlelin/be697086e0c1a725b4c1418625dd5f3c to your computer and use it in GitHub Desktop.
// This is a while loop
#include <iostream>
using namespace std;
int main()
{
int num = 1;
while (num < 21)
{ cout << num << endl;
num++;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment