xachetbay

Untitled

Mar 12th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.69 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. int main(){
  4.    
  5.     printf("Nhap ho ten: ");char hoten[50];gets(hoten);
  6.     fflush(stdin);
  7.     printf("Nhap lop: ");char lop[10]; gets(lop);
  8.     fflush(stdin);
  9.     printf("Nhap truong: ");char truong[50]; gets(truong);
  10.     fflush(stdin);
  11.     printf("Nhap gioi tinh: ");char gioitinh[5]; gets(gioitinh);
  12.     fflush(stdin);
  13.     printf("Nhap ngay sinh: ");char ngaysinh[10]; gets(ngaysinh);
  14.     fflush(stdin);
  15.     printf("Nhap que quan: ");char quequan[60];gets(quequan);
  16.    
  17.     printf("\nHo va ten: %s \n",hoten);
  18.     printf("Lop: %s \n",lop);
  19.     printf("Truong: %s \n",truong);
  20.     printf("Gioi tinh: %s \n",gioitinh);
  21.     printf("Ngay sinh: %s \n",ngaysinh);
  22.     printf("Que quan: %s \n",quequan);
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment