This commit is contained in:
19
project_cpp/functions.cpp
Normal file
19
project_cpp/functions.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <iostream>
|
||||
#include <math.h>
|
||||
|
||||
int add (int a, int b) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
|
||||
int multiple (int a, int b) {
|
||||
return a * b;
|
||||
}
|
||||
|
||||
int substraction (int a, int b) {
|
||||
return a - b;
|
||||
}
|
||||
|
||||
int devide (int a, int b) {
|
||||
return round(a / b);
|
||||
}
|
||||
Reference in New Issue
Block a user