output summ A and B, Pause before exit code

Этот коммит содержится в:
Alice (KleptsovII)
2025-01-22 01:14:54 +03:00
родитель c132f060af
Коммит b418f27b39

Просмотреть файл

@@ -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;
}