Home > Back-end >  Turn to the C language how explanation
Turn to the C language how explanation

Time:10-16

#include
Void main ()
{
Char c [18];
Int a [18] [4]={0};
Int I=0, j;
The scanf (" % s ", c);
[I] while (c)
{
If (c [I] & gt;='0' & amp; & C [I] <='9')
C=c [i++] - [I] 48.
Else if (c [I] & gt;='A' & amp; & C [I] <='Z')
C=c [i++] [I] - 55.
Else if (c [I] & gt;='a' & amp; & C [I] <='z')
C=c [i++] [I] - 87;
The else
{
Puts (" error "\ n");
return;
}
}
i=0;
While (c [I]) {
For (j=3; J>=0; J -)
{
A [I] [j]=c [I] % 2;
[I]/c=2;
}
for(j=0; J<4. J++)
Printf (" % d ", a [I] [j]);
i++;
}
}

CodePudding user response:

In a while the value of the input into ASCII before 20 digits
The next leg of the while print number into binary
  • Related