Telefon defteri
#include<stdio.h>
FILE *fp;
char ad[15],sy[20],adr[50],tel[15],ceptel[20];
char sec;
main()
{
fp=fopen("BILGILER/TELEFON REHBERI.txt","a"
;
do
{
printf("\t\t\tBILGILERI DIKKATLI GIRINIZ\n\n"
;
printf("\t\tADI :"
;
scanf("%s",&ad);
printf("\t\tSOYADI :"
;
scanf("%s",&sy);
printf("\t\tADRESI :"
;
scanf("%s",&adr);
printf("\t\tTELEFONU :"
;
scanf("%s",&tel);
printf("\t\tCEP TELEFONU :"
;
scanf("%s",&ceptel);
fprintf(fp,"AD:%s %s\n",ad,sy);
fprintf(fp,"ADRES:%s\nTEL:%s\nCEP TEL:%s\n",adr,tel,ceptel);
printf("\n\n"
;
printf("\t\tDEVAM ETMEK ISTIYORMUSUNUZ?(E/H)"
;
fflush(stdin);
sec=getchar();
}
while(sec!='h' && sec!='H');
fclose(fp);
getchar();
}