Created
October 30, 2011 18:27
-
-
Save pasali/1326234 to your computer and use it in GitHub Desktop.
sorular
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> | |
#include <string.h> | |
main(void) { | |
char dizi[] = "mmmehhhmmmettt"; | |
char d; | |
int i= 0; | |
int sayac = 1; | |
for (i ;i<= strlen(dizi);i++){ | |
if(d == dizi[i]){ | |
sayac ++; | |
if(sayac==3){ | |
printf("%c\n",dizi[i]); | |
sayac = 1; | |
} | |
} | |
d = dizi[i]; | |
} | |
} |
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> | |
main(void){ | |
int sayi = 53; | |
int cvp; | |
int hak = 5; | |
while (hak > 0){ | |
printf("tahminini yaz bakem = "); | |
scanf("%d",&cvp); | |
if (sayi<cvp) | |
printf("Aşağı\n"); | |
else if(sayi>cvp) | |
printf("Yukarı\n"); | |
else | |
printf("Bildiniz\n"); | |
hak--; | |
printf("%d hakknız kaldı.\n",hak); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment