Untitled
unknown
c_cpp
2 years ago
479 B
7
Indexable
#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
//дз посложнее задача 1
{
int n = 0;
int m = 0;
int kol = 0;
int kol2 = 0;
cin >> n >> m;
for (int i = 0; n>0; i++){
n = n / 10;
kol++;
}
for (int i = 0; m > 0; i++) {
m = m / 10;
kol2++;
}
if (kol > kol2) {
cout <<"Y pervogo"<< " "<<" - "<< kol;
}
else
cout <<"Y vtorogo" <<" "<<" - "<< kol2;
}Editor is loading...