Cashier have 10 , 50, 100 notes amout is input find the notes of each denominations given by cashier.

 // cashier have 10 , 50, 100 notes amout is input find the notes of each denominations given by cashier


main()
{
    int amtab ,c ,de ;
    printf("ENTER AMOUNT :\n");
    scanf("%d", &amt);
    
    a=amt/100;
    b=amt%100;
    c=b/50;
    d=b%50;
    e=d/10;

    printf("Currency notes of 100 : %d \n"a);
    printf("Currency notes of 50 : %d \n"c);
    printf("Currency notes of 10 : %d \n"e);
}

Comments