2
snemani
7y

On Windows, which one line input will get this code to print "Finally I get a sticker. Yayyyy!!!" immediately

#include <stdio.h>

int main()
{
char *c = (char*) malloc(sizeof(char) * 10);
int rants = 0;
while(rants<20)
{
printf("U don't want me to get a sticker?\n");
scanf("%s", c);
if(c[0] == 'y')
rants--;
else
rants++;
}
printf("Finally I get a sticker. Yayyyy!!!\n");
}

Comments
Add Comment