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) { n=n%10; tong+=i;} printf("%d",n); return 0; }
1
Timeout