MI

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
540 B
0
Indexable
Never
#include <string>
#include <iostream>
using namespace std;

void suma_minus(int a, int c)
{
	cout << a + c << endl;
	cout << a - c << endl;
}



void umnozhenie(int a, int c)
{
	cout << a * c << endl;
}

void delenie(int a, int c)
{
	if (a == 0 or c == 0)
	{
		cout << "ОШИБКА" << endl;
	}

	else { cout << a / c << endl; }

}

int main()
{
	setlocale(LC_ALL, "russian");
	int a;
	int c;
	cin >> a >> c; 
	cout << ' ' << endl;

	suma_minus(a, c);

	umnozhenie(a, c);

	delenie(a, c);


}

Leave a Comment