БУ
Без Умец
//паскаль
var
x1, x2: integer;
begin
write('Enter x1, x2 ');
readln(x1, x2);
writeln('Sum = ', x1 + x2);
end.
//С
#include
#include
main()
{
int x1, x2;
printf("Enter x1, x2 ");
scanf("%d%d", &x1, &x2);
printf("Sum = %d", x1+x2);
getch();
}
//С++
#include
using namespace std;
int main()
{
int x1, x2;
cout << "Enter x1, x2 ";
cin >> x1 >> x2;
cout << "Sum = " << x1+x2 << endl;
system("pause");
return 0;
}