Results:
The assembling 70101
The 11:11 01
12:00 11
"But 11
14:01 11
11 3
16:00 001
And 001
18:01 001
001
"00 PM 101
The code is:
# include
Int main () {
Int a=10, b, I=0, r, j=0, the count [100].
Do {
B=a;
Do {
R=b % 2;
B=b/2;
i++;
The count [I]=r;
}
While (b> 0);
Printf (" % d ", a);
While (jPrintf (" % d ", the count [j]);
j++;
}
A +=1;
printf("\n");
}
While (a<21);
return 0;
}
CodePudding user response:
Among several places wrong, use this code# include
Int main () {
Int a=10, b, I=0, r, j=0, the count [100].
Do
{
B=a;
Do
{
R=b % 2;
B=b/2;
The count [I]=r;
i++;
}
While (b> 0);
Printf (" % d ", a);
While (j{
Printf (" % d ", the count [j]);
J++;
}
A +=1;
printf("\n");
} while (a<21);
return 0;
}