Advertisement
rfmonk

io_demo.c

Oct 22nd, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main(void)
  4. {
  5.     char f,m,l;
  6.     int age;
  7.    
  8.     printf("Enter your initials, followed by your age: ");
  9.     scanf("%c %c %c %d", &f, &m, &l, &age);
  10.     printf("My initials are: %c%c%c and my age is %d.\n",f,m,l,age);
  11.     return(0);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement