Computer Science, asked by shayanali7581, 5 hours ago

I have made this program which asks amount and tells you the notes it consist I want to make this program like that it will ask what denomination I want after asking the amount
if(amount >= 2)
{
coin2 = amount/2;
amount -=coin2 * 2;
}
if(amount >= 1)
{
coin1 = amount;
}

printf("Total number of notes = \n");

textcolor(GREEN);
cprintf("5000 = %ld\n", note5000);
textcolor(MAGENTA);
cprintf("1000 = %ld\n", note1000);
textcolor(MAGENTA);
cprintf("500 = %ld\n", note500);
textcolor(MAGENTA);
cprintf("100 = %ld\n", note100);
textcolor(MAGENTA);
cprintf("50 = %ld\n", note50);
textcolor(MAGENTA);
cprintf("20 = %ld\n", note20);
textcolor(MAGENTA);
cprintf("10 = %ld\n", note10);
textcolor(MAGENTA);
cprintf("5 = %ld\n", coin5);
textcolor(MAGENTA);
cprintf("2 = %ld\n", coin2);
textcolor(MAGENTA);
cprintf("1 = %ld\n", coin1);

getch();

return 0;
}


plz help me I am very confused I have to submit it tomorrow 9am 23 june 2021

Answers

Answered by bikash234
1

Answer:

sorry I don't know the answer

Similar questions