Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3.  
  4. int main() {
  5.  
  6. int x, y;
  7. float bank_charges = 0.5;
  8. float balance = 2000.00;
  9.  
  10. printf(" \n Enter the amount of cash Pooja needs to withdraw");
  11. scanf("%d", &x);
  12.  
  13. if(x<=2000.00 && x%5==0) {
  14.  
  15. y = 0.5 * x;
  16.  
  17. }
  18. else {
  19.  
  20. printf("\n You only have: %f", &balance);
  21.  
  22. }
  23.  
  24. return 0;
  25. getchar();
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement