output summ A and B, Pause before exit code
Этот коммит содержится в:
11
main.cpp
11
main.cpp
@@ -4,7 +4,14 @@ using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
cout << "Enter A and B";
|
||||
int a, b;
|
||||
cout << "Enter A and B: " << endl;
|
||||
int a, b, sum;
|
||||
cin >> a >> b;
|
||||
sum = a + b;
|
||||
cout << "Sum of A and B: " << sum << endl;
|
||||
|
||||
std::cout << "Press 'Enter' for exit...";
|
||||
std::cin.ignore(); // èãíîðèðóåì ñèìâîë íîâîé ñòðîêè èç ïðåäûäóùåãî ââîäà
|
||||
std::cin.get();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user