iipq

Untitled

Nov 19th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int sc=150;
  5. float calls, ecalls,total;
  6.  
  7. printf("Enter the amount of minues you used: ");
  8. scanf("%f", &calls);
  9.  
  10. if(calls<=200)
  11.     printf("Your total bill is %d", sc);
  12. else
  13. {
  14.     ecalls=calls-200;
  15.     total=(ecalls*1.75)+sc;
  16.     printf("Total bill %f", total);
  17. }
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment