Created
June 6, 2012 18:33
-
-
Save raziyeaydin/2883776 to your computer and use it in GitHub Desktop.
dosyada_toplama
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(void){ | |
FILE*belge; | |
int sayi_1,sayi_2; | |
belge=fopen("deneme.doc","w"); | |
printf("bir sayi giriniz:"); | |
scanf("%d",&sayi_1); | |
fprintf(belge,"sayi_1=%d\n",sayi_1); | |
printf("bir sayi giriniz:"); | |
scanf("%d",&sayi_2); | |
fprintf(belge,"sayi_2=%d\n",sayi_2); | |
fprintf(belge,"sayilarin toplami:%d\n",(sayi_1+sayi_2)); | |
close(belge); | |
getch(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment