diff options
| author | Asahel <[email protected]> | 2024-01-22 18:00:17 -0800 |
|---|---|---|
| committer | Asahel <[email protected]> | 2024-01-22 18:00:17 -0800 |
| commit | c9084c1f77d643aeb0c07719325a9254404dcbd7 (patch) | |
| tree | 33fb4db49438f58bd676a4ab8dd5176c96e5a8be | |
| parent | Completed steps 1-2 (diff) | |
| download | hello-world-asahellt-c9084c1f77d643aeb0c07719325a9254404dcbd7.tar.xz hello-world-asahellt-c9084c1f77d643aeb0c07719325a9254404dcbd7.zip | |
Finished half of the homework
| -rw-r--r-- | Hello World/Hello World/Program.cpp | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/Hello World/Hello World/Program.cpp b/Hello World/Hello World/Program.cpp index 1b791e2..34032d1 100644 --- a/Hello World/Hello World/Program.cpp +++ b/Hello World/Hello World/Program.cpp @@ -17,10 +17,28 @@ int main() int k; int l; - const int PORT = 1024; - - cout << "Enter a value"; + const int m = 1024; + cout << "Enter number #1: "; + cin >> j; - return 0; + + cout << "Enter number #2: " << j << endl; + + cin >> k; + + cout << "Enter number #3: " << k << endl; + + cin >> l; + + cout << "The sum of all three variable is" << k + j + l << endl; + + cout << "The three variables multiplied equal" << k * j * l << endl; + + + + + + + return 0; }
\ No newline at end of file |