[ create a new paste ] login | about

Link: http://codepad.org/Wr9ExRQd    [ 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)
{
n=n%10;
tong+=i;}
printf("%d",tong);
return 0;
}


Output:
1
Killed


Create a new paste based on this one


Comments: