Files
seer/tests/recursive_test/src/arithmetic.cpp
T
2025-11-06 11:43:11 +07:00

154 lines
846 B
C++

#include "arithmetic.h"
int add(int a, int b) {
return a + b;
}
/***
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
int subtract(int a, int b) {
return a - b;
}
/***
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
int multiply(int a, int b) {
return a * b;
}
/***
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
double divide(int a, int b) {
if (b == 0) return 0.0; // simple error handling
return static_cast<double>(a) / b;
}