thieumao

Đọc ghi chuỗi (gets - puts)

May 12th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.     char name[20];
  5.     puts("Input: ");
  6.     fflush(stdin);
  7.     gets(name);
  8.     puts("Output: ");
  9.     puts(name);
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment