Untitled

mail@pastecode.io avatar
unknown
c_cpp
13 days ago
391 B
0
Indexable
Never
#include <iostream>
using namespace std;
double del(double a, double b)
{
	return a / b;
}
double pro(double a, double b)
{
	return a * b;
}
double raz(double a, double b)
{
	return a - b;
}
double sum(double a, double b)
{
	return a + b;
}
int main()
{
	double a, b;
	cin >> a >> b;
	cout << sum(a, b) << endl << raz(a, b) << endl << pro(a, b) << endl << del(a, b);
}
Leave a Comment