[ create a new paste ] login | about

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

C, pasted on Aug 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include<stdio.h>
int main()
{

    char c;
    do
    {
        printf("hello\n");
        printf("do u want 2 continue? y or n \n");
        scanf("%c",&c);
    } while(c=='y');
    return 0;
}


Output:
1
2
hello
do u want 2 continue? y or n 


Create a new paste based on this one


Comments: