#include <iostream>
#include <cstdlib> // для system
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
int a,b,c;
int z = 0;
cout << " Input a,b,c ";
cin >> a >> b >> c;
if ( a == b && b == c)
z++;
cout << a << endl;
cout << b << endl;
cout << c << endl;
}
else
cout << " Количество максимальных: " << z << endl;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <cstdlib> // для system
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
int a,b,c;
int z = 0;
cout << " Input a,b,c ";
cin >> a >> b >> c;
if ( a == b && b == c)
{
z++;
cout << a << endl;
z++;
cout << b << endl;
z++;
cout << c << endl;
}
else
{
z++;
cout << a << endl;
cout << b << endl;
cout << c << endl;
}
cout << " Количество максимальных: " << z << endl;
}