标签:func 设计 程序 oid nbsp 字符 题目 div main
1990
1 9 9 0
1 #include <stdio.h> 2 3 void func(int n) 4 { 5 int ge = n % 10; 6 int qian = n / 1000; 7 int bai = (n - qian * 1000) / 100; 8 int shi = (n - qian * 1000 - bai * 100) / 10; 9 10 printf("%d %d %d %d\n", qian, bai, shi, ge); 11 } 12 13 int main(int argc, char const *argv[]) 14 { 15 int num; 16 17 scanf("%d", &num); 18 19 func(num); 20 21 return 0; 22 }
标签:func 设计 程序 oid nbsp 字符 题目 div main
原文地址:http://www.cnblogs.com/hello-lijj/p/7857881.html