From 27d411cd221e104e426eff791f7544801ef8ce58 Mon Sep 17 00:00:00 2001 From: tofuandeve <51251605+tofuandeve@users.noreply.github.com> Date: Mon, 20 Apr 2020 05:53:05 +0000 Subject: [PATCH] Updating all questions --- fix-code-0/main.cpp | 2 +- fix-code-1/main.cpp | 2 +- fix-code-2/main.cpp | 2 +- fix-code-3/main.cpp | 2 +- fix-code-4/main.cpp | 2 +- invent-code-0/main.cpp | 3 +++ invent-code-1/main.cpp | 1 + 7 files changed, 9 insertions(+), 5 deletions(-) diff --git a/fix-code-0/main.cpp b/fix-code-0/main.cpp index df5e772..0c647e6 100644 --- a/fix-code-0/main.cpp +++ b/fix-code-0/main.cpp @@ -3,5 +3,5 @@ using namespace std; int main() { - cout<<"Hello "; cout <<"World!"; cout << endl; + cout << "Hello World!" << endl; } diff --git a/fix-code-1/main.cpp b/fix-code-1/main.cpp index 8b51ed8..66d9e00 100644 --- a/fix-code-1/main.cpp +++ b/fix-code-1/main.cpp @@ -3,5 +3,5 @@ using namespace std; int main() { - cout << Hello; + cout << "Hello" << endl; } diff --git a/fix-code-2/main.cpp b/fix-code-2/main.cpp index e97dc08..66d9e00 100644 --- a/fix-code-2/main.cpp +++ b/fix-code-2/main.cpp @@ -3,5 +3,5 @@ using namespace std; int main() { - cout << "Hello" + cout << "Hello" << endl; } diff --git a/fix-code-3/main.cpp b/fix-code-3/main.cpp index b817b90..81ac576 100644 --- a/fix-code-3/main.cpp +++ b/fix-code-3/main.cpp @@ -3,5 +3,5 @@ using namespace std; int main() { - cout >> "Hello"; + cout << "Hello"; } diff --git a/fix-code-4/main.cpp b/fix-code-4/main.cpp index b7eb6e1..76201e1 100644 --- a/fix-code-4/main.cpp +++ b/fix-code-4/main.cpp @@ -3,5 +3,5 @@ using namespace std; int main() { - cout << "My GitHub username is [fill in your username here]!"; + cout << "My GitHub username is tofuandeve!" << endl; } diff --git a/invent-code-0/main.cpp b/invent-code-0/main.cpp index befbd89..589c05c 100644 --- a/invent-code-0/main.cpp +++ b/invent-code-0/main.cpp @@ -4,4 +4,7 @@ using namespace std; int main() { // Write code here. + cout << "Code" << endl; + cout << "Code 1" << endl; + cout << "Code 3" << endl; } diff --git a/invent-code-1/main.cpp b/invent-code-1/main.cpp index befbd89..f98cbd2 100644 --- a/invent-code-1/main.cpp +++ b/invent-code-1/main.cpp @@ -3,5 +3,6 @@ using namespace std; int main() { + cout << "Code " << "Code1 " << "Code2" << endl; // Write code here. }