Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- char yourname[100];
- int yourage;
- printf("Whats your name?\t");
- scanf("%s",yourname); //i let you read the doc to avoid overflow :)
- printf("How old are you?\t");
- scanf("%d",&yourage);
- printf("You are %d years old and your name is %s \n\n\n",yourage,yourname);
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement