/* c++ */
#include <iostream>
using namespace std;
int main()
{
int A, B;
cout << "Enter the numbers A and B" << endl;
cout << "A: ";
cin >> A;
cout << "B: ";
cin >> B;
while (A > 100)
cout << "The numbers more than 100" << endl;
cout << "Enter again" << endl;
cin>> B;
}
if (A == B)
cout << "ровно" << endl;
else if (A > B)
cout << "больше" << endl;
else
cout << "меньше" << endl;
return 0;
/* c++ */
#include <iostream>
using namespace std;
int main()
{
int A, B;
cout << "Enter the numbers A and B" << endl;
cout << "A: ";
cin >> A;
cout << "B: ";
cin >> B;
while (A > 100)
{
cout << "The numbers more than 100" << endl;
cout << "Enter again" << endl;
cout << "A: ";
cin >> A;
cout << "B: ";
cin>> B;
}
if (A == B)
cout << "ровно" << endl;
else if (A > B)
cout << "больше" << endl;
else
cout << "меньше" << endl;
return 0;
}
если a>b то M:=a if a>b then M:=a;
иначе M:=b всё else M:=b;
если c>b то M:=c if c>b then M:=c
иначе M:=b всё else M:=b;
если a>c то M:=a if a>c then M:=a
иначе M:=c всё else M:=c;