#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; }
时间: 2024-10-13 21:14:32