Digit Generator UVa1583

code1: 1 #include<stdio.h> 2 3 //count the number of the digit. 4 int count_digits(int a) 5 { 6 int count = 0; 7 while(a) 8 { 9 a /= 10; 10 count++; 11 } 12
相關文章
相關標籤/搜索