Вход и изход

lubo.elsys.bg.org

Вход и изход

Пример

#include

int main () {

char s[50];

gets(s);

printf("\\n not added:%s:",s);

puts("one line");

printf("\\n added");

return 0;

}

#include

int main () {

char s[50];

fgets(s, 50, stdin);

printf("\\n added :%s:", s);

fputs("one line", stdout);

printf("\\n not added");

return 0;

}

More magazines by this user
Similar magazines