#includeint main(){ int a = 0; int Sn = 0; printf("请输入a:"); scanf("%d", &a); Sn = a + a * 11 + a * 111 + a * 1111 + a * 11111; printf("%d+%d+%d+%d+%d=%d\n", a, a * 11, a * 111, a * 1111, a * 11111, Sn); system("pause"); return 0;}
本文共 294 字,大约阅读时间需要 1 分钟。
#includeint main(){ int a = 0; int Sn = 0; printf("请输入a:"); scanf("%d", &a); Sn = a + a * 11 + a * 111 + a * 1111 + a * 11111; printf("%d+%d+%d+%d+%d=%d\n", a, a * 11, a * 111, a * 1111, a * 11111, Sn); system("pause"); return 0;}
转载于:https://blog.51cto.com/survive/1701619