lab6.1.1/1.cpp
2024-12-16 09:14:42 +04:00

12 lines
223 B
C++

#include <iostream>
int sum(int a, int b) {
return a + b;
}
int main() {
int x, y;
std::cout << "Enter two numbers: ";
std::cin >> x >> y;
std::cout << "Sum: " << sum(x, y) << std::endl;
return 0;
}