Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void end(void) {
- float t;
- for (i=0; i<10; i++)
- t +=shoppingcart[i];
- printf("Your purchases are\n");
- for (i=0;i<10;i++)
- {
- if (receipt[i]>0);
- printf("%d\n",receipt[i]);
- }
- printf(" Your total is\n$%.2f\n", t);
- printf(" Type E to exit\n", t);
- scanf("%f",t);
- return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement