-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHello_World_Exercise.cpp
71 lines (52 loc) · 1.86 KB
/
Hello_World_Exercise.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//Written by: Artemis Solomon
//Welcome to C++: Hello World Exercise
//Below are 5 different exercises.
//Exercise 1:
//Instructions: Place the [#] and [<>] signs where they go.
//Header File Library
include iostream
//Main Function
int main()
{
std::cout << "Hello World!";
return 0;
}
--------------------------------------------------------------------------------------------------------------------------------------------------------
//Exercise 2:
//Instructions: The Main Function is missing [int]. Please correct the code.
//Header File Library
#include <iostream>
//Main Function
main()
{
std::cout << "Hello World!";
return 0;
}
--------------------------------------------------------------------------------------------------------------------------------------------------------
//Exercise 3:
//Instructions: This code is missing a comment, a semi colon[;] and has incorrect an incorrect Operator [''] instead of [""]. Please Correct the Code
//Header File Library
#include <iostream>
//
int main()
{
std::cout << 'Hello World'
return 0;
}
--------------------------------------------------------------------------------------------------------------------------------------------------------
//Exercise 4:
//Instructions: This code is missing comments, Header File Library, an Object, Output and return integer. Please correct the Code.
//
#include <>
//
int main()
{
std:: << "";
return ;
}
--------------------------------------------------------------------------------------------------------------------------------------------------------
//Exercise 5:
//Instructions: Write the code and use endl to flush the ouput buffer and start a new line.
//Header File Library
//Main Function
--------------------------------------------------------------------------------------------------------------------------------------------------------