标签:return
#include<stdio.h> int main() { int x; x=70000; int t=x; //int cnt=0; int mask = 1; while (t>9){ t /=10; mask *=10; } printf("mask=%d\n",mask); //int mask = 10000; do{ int d = x / mask; printf("%d",d); if(mask>9) { printf(" "); } x %= mask; mask /= 10; }while ( mask>0); printf("\n"); return 0; }
标签:return
原文地址:http://9815936.blog.51cto.com/9805936/1632375