Quick actions

cmd+k|ctrl+k

Navigation

Languages

hm-temp

Snippet info

Language

Cpp

Visibility

public

Author

zvat.333333

Created

2021-12-07T14:16:48.116402Z

Updated

2021-12-07T14:16:48.116402Z

#include <iostream>

using namespace std;

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

	int temperature; 
	cin >> temperature;

	if (temperature <= -20)
	{
		cout << "Очень холодно";
	}
	else if (temperature <= -5)
	{
		cout << "Холодно";
	}	
	else if (temperature <= 10)
	{
		cout << "Прохладно";
	}
	else if (temperature <= 20)
	{
		cout << "Тепло";
	}
}

INFO