Home > Back-end > Fill in the blanks the cable crack (program)
Fill in the blanks the cable crack (program)
Time:12-30
Program fills up the topic, and finally run results has been wrong, wrong seems to be the first to the second empty, ask bosses how this topic # include # include # include using namespace std; Long long suma=0, sumb=0, s=0; Char a [105], [105] b; Int main () { The scanf (" % s ", a); Int sa=strlen (a); for(int i=0; i{ If (a [I] & gt;='0' and a [I] <='9') CoutSuma=suma * 10 + a [I]; } The scanf (" % s ", b); Int sb=strlen (b); for(int i=0; i{ If (b [I] & gt; [I]='0' and b & lt;='9') Sumb=sumb * 10 + b [I]; } coutLong long b=suma * sumb; Suma=0; Sumb=b; While (sumb>=9) { Suma++; Sumb=sumb/10; } If (suma 10 and sumb====1) CoutThe else Cout<& lt;" Fail "; }