标签:c语言
#include<stdio.h> #include<stdlib.h> int main() { int a,sum; scanf("%d", &a); if ((a<10) && (a>0)) { sum = a; sum = sum + a + a * 10; sum = sum + a + a * 10 + a * 100; sum = sum + a + a * 10 + a * 100 + a * 1000; sum = sum+a + a * 10 + a * 100 + a * 1000 + a * 10000; printf("%d", sum); } system("pause"); return 0; }
本文出自 “无以伦比的暖阳” 博客,请务必保留此出处http://10797127.blog.51cto.com/10787127/1706162
标签:c语言
原文地址:http://10797127.blog.51cto.com/10787127/1706162