day 2 commit & changed day 1 filenames
This commit is contained in:
parent
d5f4f817c0
commit
703fcae148
6 changed files with 99 additions and 0 deletions
17
day1.cpp
Normal file
17
day1.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int a, b, c;
|
||||
cout << "Please enter two numbers to add." << endl;
|
||||
cin >> a >> b;
|
||||
|
||||
c = a + b;
|
||||
|
||||
if (c == 1979) {
|
||||
cout << "Special number!!!!!!" << endl;
|
||||
}
|
||||
|
||||
cout << c << std::endl;
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue