Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Задача 1,6.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int A, B, C;
- int _tmain(int argc, _TCHAR* argv[])
- {
- setlocale(LC_ALL, "russian");
- cout << "Ведите показания датчиков A, B и C: ";
- cout << endl;
- cin >> A >> B >> C;
- cout << "-----------------------------------------";
- cout << endl;
- if (A >= 50 || B >= 50 || C >= 50)
- {
- cout << "ТРЕВОГА! ТРЕВОГАА! ТРЕВОГА!";
- }
- else
- {
- cout << "Все системы в норме";
- }
- cout << endl;
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment