[ create a new paste ] login | about

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

C, pasted on Apr 15:
1
2
3
4
5
6
7
8
9
10
#include<stdio.h>
void main()
{
    int number=1;
    while (number<=10)
    {
        printf("%i \n", number);
        number = number + 1;
    }
}


Output:
1
2
3
4
5
6
7
8
9
10
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 


Create a new paste based on this one


Comments: