0
#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;
}

why this erorr?

4
Contributors
5
Replies
16
Views
3 Years
Discussion Span
Last Post by Banfa
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.