alexa-tracking

Main Content

1024
1024
KASKUS
51
244
https://www.kaskus.co.id/thread/52c97ad8128b466f648b46c0/operasi-pengulangan-pad-c
operasi pengulangan pad C
Code:
#include <stdio.h>
#include <stdlib.h>

int buku;
int jum;
int total;
char member;
int main(int argc, char *argv[])
{
printf("\n---------Tarif Peminjaman Buku-------\n");
printf("Member Rp.5000.oo,-\n");
printf("Non-Member Rp.15000.oo,-\n");
printf("Regist Member Rp.30000.00,-\n");
printf("-------------------------------------\n");
printf("Silahkan Masukan Pilihan Anda\n");
printf("Jumlah Buku : ");
fflush(stdin);
scanf( "%d",&jum );
printf("Apakah anda member [Y/T]");

fflush(stdin);
scanf("%c",&member);

if (member !='y')
{
total=5000*jum;
printf("Total : %s \n",total);
}
else (member !='t');
{
total=15000*jum;
printf("Total : %s \n",total);
}
system("Pause");
return 0;
}



KOK kek gini ya gan

operasi pengulangan pad C