labb6/1.cpp

11 lines
222 B
C++
Raw Normal View History

2024-12-16 09:28:47 +04:00
#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;
}