Skip to content

Instantly share code, notes, and snippets.

@pasali
Created October 30, 2011 18:27
Show Gist options
  • Save pasali/1326234 to your computer and use it in GitHub Desktop.
Save pasali/1326234 to your computer and use it in GitHub Desktop.
sorular
#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];
}
}
#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