1 2 3 4 5 6 7 8 9 10 11
#include<stdio.h> int main() { int n=546,i,tong=0; while(n>0) { i=n%10; tong+=i;} printf("%d",tong); return 0; }
1
Timeout