Untitled
unknown
plain_text
2 years ago
333 B
4
Indexable
// задача на циклы #include <iostream> using namespace std; int main() { int a; cin >> a; int b; cin >> b; int s = 0; int e = 0; while (a > 0) { s += 1; a /=10; } cout << s; cout << " and "; while (b > 0) { e += 1; b /= 10; } cout << e; if (s > e) { cout } }
Editor is loading...