Задание 1.
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int a, b;
cout << "Please enter integer a: ";
cin >> a;
cout << "Please enter integer b: ";
cin >> b;
cout << "Your initial integers are a = " << a << " and b " << b << endl;
cout << "(runs the programm)" << endl;
a = b - a;
b = b - a;
a = b + a;
cout << "Now a = " << a << " and b = " << b << endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Не знайшли потрібну інформацію? Скористайтесь пошуком google:
|
|