Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. void end(void) {
  2. float t;
  3. for (i=0; i<10; i++)
  4. t +=shoppingcart[i];
  5. printf("Your purchases are\n");
  6. for (i=0;i<10;i++)
  7. {
  8. if (receipt[i]>0);
  9. printf("%d\n",receipt[i]);
  10. }
  11. printf(" Your total is\n$%.2f\n", t);
  12. printf(" Type E to exit\n", t);
  13. scanf("%f",t);
  14. return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement