Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Added C++ "For Loop" & "Hello World!" #194

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions C++/forLoop.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Header file for input output functions
#include<iostream>

using namespace std;

// main function
int main()
{
// prints hello world 10 times
for (int i = 1; i < 11; i++) {
cout << "Hello World! " << i << "\n";
}

return 0;
}
13 changes: 13 additions & 0 deletions C++/helloWorld.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Header file for input output functions
#include<iostream>

using namespace std;

// main function
int main()
{
// prints hello world
cout << "Hello World";

return 0;
}