Advertisement
nontawat1996

ค่าจอดรถ

Oct 11th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int h,m;
  7.     scanf("%d %d",&h,&m);
  8.     printf("Money = %d bath.",((h>1)*30*(h-1))+((m>0)*30));
  9.     return 0;
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement