Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int sc=150;
- float calls, ecalls,total;
- printf("Enter the amount of minues you used: ");
- scanf("%f", &calls);
- if(calls<=200)
- printf("Your total bill is %d", sc);
- else
- {
- ecalls=calls-200;
- total=(ecalls*1.75)+sc;
- printf("Total bill %f", total);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment