Quick actions

cmd+k|ctrl+k

Navigation

Languages

Lab4(114)

Snippet info

Language

Cpp

Visibility

public

Author

buteskul5.6

Created

2018-10-08T13:03:32Z

Updated

2018-10-08T13:03:32Z

#include <iostream>
#include<cmath>

using namespace std;

int main()
{
	setlocale(LC_ALL, "ru");

	double a, b, c;
	cout << "Введите числа" << endl;
	cin >> a
		>> b
		>> c;

	cout << endl;

	if (a <= b && b <= c)
	{
		cout << 2 * a << endl
			<< 2 * b << endl
			<< 2 * c << endl;
	}
	else
	{
		a = abs(a);
		b = abs(b);
		c = abs(c);

		cout << endl << "Результат:" << endl
			<< a << endl
			<< b << endl
			<< c << endl;
		return 0;
	}
}

INFO