Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int soberi (int a, int b) {
- int zbir = a + b;
- return zbir;
- }
- int odzemi (int a, int b) {
- int razlika = a - b;
- return razlika;
- }
- int pomnozi (int a, int b) {
- int proizvod = 1;
- proizvod = a * b;
- return proizvod;
- }
- int podeli (int a, int b) {
- int kolicnik = a / b;
- return kolicnik;
- }
- int main()
- {
- int n, m;
- cin >> n >> m;
- cout << soberi(n, m) << endl;
- cout << odzemi(n, m) << endl;
- cout << pomnozi(n, m) << endl;
- cout << podeli (n, m) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement