Skip to content

Instantly share code, notes, and snippets.

@mjlassila
Forked from merbussa/kredı lımıt.c
Created April 4, 2014 10:13
Show Gist options
  • Save mjlassila/9971753 to your computer and use it in GitHub Desktop.
Save mjlassila/9971753 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main() {
int h,ib,th,hak,kl;
printf("hesap no gırın (çıkıs -1 ):\n");
scanf("%d",&h);
while(h!=-1) {
printf("ilk bakiyeyi gir:\n");
scanf("%d",&ib);
printf("toplam harcamayı gırınız:\n");
scanf("%d",&th);
printf("hesaba aktarılan krediyi giriniz:\n");
scanf("%d",&hak);
printf("kredi limitini giriniz:\n");
scanf("%d",&kl);
printf("hesap no gırın (çıkıs -1 ):\n");
scanf("%d",&h);
}
printf("hesap no:%d\n",h);
printf("kredi limiti: %d\n",kl);
printf("bakiye:%d\n",(ib + hak));
if(kl < (ib + hak)) {
printf("lımıt asıldı!\n"); }
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment