Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- float mb, gb, bill,ebill;
- printf("Enter used megabytes: ");
- scanf("%f", &mb);
- gb=mb/1024;
- if (gb<20){
- bill=(mb*0.95)+2000;
- printf("Total bill: %f", bill);
- }
- else
- {
- bill=(mb*0.95)+2000;
- ebill=bill-(bill*0.15);
- printf("Total bill = %f", ebill);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment