Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- int main(){
- printf("Nhap ho ten: ");char hoten[50];gets(hoten);
- fflush(stdin);
- printf("Nhap lop: ");char lop[10]; gets(lop);
- fflush(stdin);
- printf("Nhap truong: ");char truong[50]; gets(truong);
- fflush(stdin);
- printf("Nhap gioi tinh: ");char gioitinh[5]; gets(gioitinh);
- fflush(stdin);
- printf("Nhap ngay sinh: ");char ngaysinh[10]; gets(ngaysinh);
- fflush(stdin);
- printf("Nhap que quan: ");char quequan[60];gets(quequan);
- printf("\nHo va ten: %s \n",hoten);
- printf("Lop: %s \n",lop);
- printf("Truong: %s \n",truong);
- printf("Gioi tinh: %s \n",gioitinh);
- printf("Ngay sinh: %s \n",ngaysinh);
- printf("Que quan: %s \n",quequan);
- }
Advertisement
Add Comment
Please, Sign In to add comment