Code:
#includ<stdio.h> #include<conio.h> void main() { clrscr(); int one, five, ten, res1, res_1, res_2, res_3; float two_fve, res_4, res2; printf("\n\t\tMoney Denomination!"); printf("\n\nEnter number of coins per value"); printf("\n\nP10 coin"); scanf("%d",&ten); printf("\nP5 coin:"); scanf("%d",&five); printf("\nP1 coin:"); scanf("%d",&one); printf("\n25 centavo coin:"); scanf("%f",&two_fve); res1=ten+five+one+two_fve; res_1=ten*10; res_2=five*5; res_3=one*1; res_4=two_fve*.25; res2=res_1+res_2+res_3+res_4; printf("You have a total of %d coins, amounting to Php. %f."); getch(); }
Comment