Maplewing

1/23 C: String Input

Jan 22nd, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.15 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.     int n;
  5.     scanf("%d", &n);
  6.     printf("%d\n", n);
  7.    
  8.     char s[100];
  9.     scanf("%s", s);
  10.     printf("%s\n", s);
  11.    
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment