Sinh viên 1
#include<conio.h>
#include<stdio.h>
typedef struct
{
char HT[30];
int ns;
float dtb;
}
SV;
SV DS[100];
void nhap(SV SV[100], int n)
{
int i,tg;
float t;
for (i=0;i<n;i++)
{
printf("Nhap thong tin cho SV thu %d",i+1);
printf("Ho ten: "); fflush(stdin);gets(DS[i].HT);
printf("Nam sinh: ");scanf("%d",&tg);DS[i].ns=tg;
printf("Diem TB: ");scanf("%f",t);DS[i].dtb;
}
void In_TT(SV DS[100],int n)
{
int i;
for(i=0;i<n;i++)
{
printf("Nhap thong tin cho SV thu %d",i+1);
printf("Ho ten: "); fflush(stdin);gets(DS[i].HT);
printf("Nam sinh: ");scanf("%d",&tg);DS[i].NS=tg;
Bạn đang đọc truyện trên: Truyen4U.Com