Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main ()
  4. {
  5.    char yourname[100];
  6.    int yourage;
  7.  
  8.    printf("Whats your name?\t");
  9.    scanf("%s",yourname); //i let you read the doc to avoid overflow :)
  10.    printf("How old are you?\t");
  11.    scanf("%d",&yourage);
  12.    printf("You are %d years old and your name is %s \n\n\n",yourage,yourname);
  13.    
  14.    return(0);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement