Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- char name[20];
- printf("Hello. What's your name?\n");
- fgets(name,20,stdin);
- printf("Hi there, %s", name);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement