Write a C++ program to compute the sum of the two given integers and count the number of digits of the sum value
- برمجة سي بلس بلس
- 2021-05-11
- MarwaMohammed
الأجوبة
#include <iostream>
#include <sstream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y) {
stringstream str1;
str1 << x + y;
cout << str1.str().size() << endl;
}
return 0;
}أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
