Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by krupni ( 15 years ago )
#include <stdafx.h>
#include <iostream>
#include <iomanip>
using namespace std;
void main()
{
setlocale(LC_ALL, "russian");
int n;
float x, y, z, n, m, l;
cout << "Лабараторная работа №5" << endl;
cout << endl;
cout << "Задание 1" << endl;
cout << endl;
cout<<"Введите х "<<endl;
cin>>x;
cout<<"Введите y "<<endl;
cin>>y;
cout<<"Введите z "<<endl;
cin>>z;
if ((x==y && y!=z) || (y==z && x!=z) || (z==x && x!=y)) //из чисел x,y,z только два равны между собой;
cout<<"Истина"<<endl;
else
cout<<"Ложь"<<endl;
}
Revise this Paste