[ create a new paste ] login | about

Link: http://codepad.org/km5k9Uv4    [ raw code | output | fork ]

C, pasted on Oct 18:
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;
}


Output:
1
Timeout


Create a new paste based on this one


Comments: