Summary 1.
This commit is contained in:
parent
9c034ccfcc
commit
d38494a62f
12
main.cpp
12
main.cpp
@ -2,9 +2,13 @@
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int x{ 0 };
|
int i1{ };
|
||||||
std::cout << "Number Repeater:\nEnter the Number: ";
|
int i2{ };
|
||||||
std::cin >> x;
|
std::cout << "Enter a Integer: ";
|
||||||
std::cout << std::endl << "You Entered: " << x << "!\n";
|
std::cin >> i1;
|
||||||
|
std::cout << "Enter another Integer: ";
|
||||||
|
std::cin >> i2;
|
||||||
|
std::cout << i1 << " + " << i2 << " is " << i1 + i2 << "\n";
|
||||||
|
std::cout << i1 << " - " << i2 << " is " << i1 - i2 << "\n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user