Home > Back-end >  Three enter a positive integer, according to a one hundred - bit on the number of output format
Three enter a positive integer, according to a one hundred - bit on the number of output format

Time:11-07

Output=bits (one hundred - bit number can be 3 whole)
=10 (other)

CodePudding user response:

 
Int myfunc (int x)
{
Int a0, a1, a2,
Int d=x;
A0=d % 10;
D/=10;
A1=d % 10;
D/=10;
A2=d % 10;
If return a0 (a2%3==0).
Return a1.
}
  • Related