Advertisement
jpenguin

hello.c

Jan 28th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5.     char name[20];
  6.     printf("Hello. What's your name?\n");
  7.     fgets(name,20,stdin);
  8.     printf("Hi there, %s", name);
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement