Advertisement
mabwehz

showIDandName

Apr 4th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int main()
  5. {
  6.     char name[20] = "Madame Tressy";
  7.     int ID;
  8.  
  9.     printf("Enter ID: ");
  10.     scanf("%d", &ID);
  11.    
  12.     printf("Full name is: %s. ID is: %d", name, ID);
  13.    
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement