TheRasVa

Задача 1,6

Feb 6th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. // Задача 1,6.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. using namespace std;
  7. int A, B, C;
  8. int _tmain(int argc, _TCHAR* argv[])
  9. {
  10.     setlocale(LC_ALL, "russian");
  11.     cout << "Ведите показания датчиков A, B и C: ";
  12.     cout << endl;
  13.     cin >> A >> B >> C;
  14.     cout << "-----------------------------------------";
  15.     cout << endl;
  16.     if (A >= 50 || B >= 50 || C >= 50)
  17.     {
  18.         cout << "ТРЕВОГА! ТРЕВОГАА! ТРЕВОГА!";
  19.     }
  20.     else
  21.     {
  22.         cout << "Все системы в норме";
  23.     }
  24.     cout << endl;
  25.     system("PAUSE");
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment