Code:#include <stdio.h>/*this will be a coin counting program please someone help me this to work it will be my first program my ownCode:int main() { int p; int n; int d; int q; int sum; int x,y,z,s; float r; printf("enter number of pennies:"); scanf("%d",&p); x=p; printf("enter number of nickels:"); scanf("%d",&n); y=(n*5); printf("enter number of dimes:"); scanf("%d",&d); z=d*10; printf("enter number of quarters:"); scanf("%d",&q); s=(q*25); r=(((x+y+z+s)%100)/100); sum=((x+y+z+s)/100)-r; scanf("%d %f",&sum,&r); printf("you have" sum,r "dollars"); getchar(); return0; }*/



6Likes
LinkBack URL
About LinkBacks
*/ 



