Merhaba arkadaşlar,
benim bir ödevim var Kredi Limit Hesaplayıcısı türkçe olarak böyle oluyor.Bu ödevi yapmam gerekiyor bana yardımcı olabilecek arkadaşlar var mı acaba. Yazmayı denedim ancak sürekli hata alıyorum.
ÖRNEK ;
#include <stdio.h>
int main (void)
{
int Account number , startbalance , allcharge , credit , creditlimit ;
printf ("Enter Account Number : \n ");
scanf ("%d",&Account number);
printf("Enter Beginning Balance : ");
scanf("%d",&startbalance);
printf("Enter total charge : ");
scanf("%d",&allcharge);
printf("Enter total credit : ");
scanf("%d",&credit);
printf("Enter Credit limit : ");
scanf("%d",&creditlimit);
if ( allcharge > creditlimit)
printf ("Credit limit Exceeded " );
printf (" Account Number : %d\\n",Account number);
printf (" Credit Limit %d \\n", creditlimit);
printf (" New Limit %d\\n",startbalance);
while ( Account number != -1) {
counter = counter ++;
printf ("Enter Account Number : ");
scanf ("%d",&Account number);
printf("Enter Beginning Balance : ");
scanf("%d",&startbalance);
printf("Enter total charge : ");
scanf("%d",&allcharge);
printf("Enter total credits : ");
scanf("%d",&credit);
printf("Enter Credit limit : ");
scanf("%d",&creditlimit);
if ( Account number == -1)
printf ("close",Account number , startbalance , allcharge , credit , creditlimit);
}
}