Home > Back-end >  C language for teaching
C language for teaching

Time:06-10

Output within a five number
How to output a few digits is it

CodePudding user response:

Take over, circulation, + 1, in addition

CodePudding user response:

Greater than 9 is 2 digits
Greater than 99 is 3 digits
.

CodePudding user response:

 
Int bit=0;
int n;
Printf (" please enter an integer: \ n ");
The scanf (" % d ", & amp; N);
While (n!=0)
{
Bit++;
N/a=10;
}
Printf (" you input is % d digits \ n ", bit);

CodePudding user response:

The
reference fireyou reply: 3/f
 
Int bit=0;
int n;
Printf (" please enter an integer: \ n ");
The scanf (" % d ", & amp; N);
While (n!=0)
{
Bit++;
N/a=10;
}
Printf (" you input is % d digits \ n ", bit);

N/a=10 is what mean

CodePudding user response:

The
reference fireyou reply: 3/f
 
Int bit=0;
int n;
Printf (" please enter an integer: \ n ");
The scanf (" % d ", & amp; N);
While (n!=0)
{
Bit++;
N/a=10;
}
Printf (" you input is % d digits \ n ", bit);

I know, just didn't turn around

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related