Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main() {
- int x, y;
- float bank_charges = 0.5;
- float balance = 2000.00;
- printf(" \n Enter the amount of cash Pooja needs to withdraw");
- scanf("%d", &x);
- if(x<=2000.00 && x%5==0) {
- y = 0.5 * x;
- }
- else {
- printf("\n You only have: %f", &balance);
- }
- return 0;
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement