Last active
December 14, 2017 17:05
-
-
Save bahacan19/8cb43ad6e2fab66689a529f810ae28c1 to your computer and use it in GitHub Desktop.
HARUN C ödev
This file contains hidden or 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() { | |
int N1, N2, sonuc; | |
printf("iki sayı giriniz her sayı girdiğinizde enter e basınız= \n"); | |
while(scanf("%d %d", &N1, &N2) != 2) | |
{ | |
printf("Sayı Girin lütfen!!! \n"); | |
while(getchar() != '\n'); | |
} | |
sonuc = N1 + N2; | |
printf("%d ve %d sayılarının toplamı %d dir", N1, N2, sonuc); | |
return 0; | |
} |
This file contains hidden or 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() | |
{ | |
int N1 , N2 ,sonuc ; | |
printf("iki sayı giriniz her sayı girdiğinizde enter e basınız= \n"); | |
scanf("%d %d" , &N1 , &N2); | |
sonuc= N1+N2 ; | |
printf("%d ve %d sayılarının toplamı %d dir \n",N1,N2,sonuc); | |
return 0 ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
harunodev.c asıl ödev
defansive.c kodu, kullanıcının command line dan harf girmesini engelleyen bir çözüm. aynı işi yapar