fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a;
  5. scanf("%d",&a);
  6. int money=(a>=6&&a<=11)*590+(a>=12&&a<=17)*790+(a>=18&&a<=59)*890+(a>=60)*399;
  7. printf("%d",money);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 5320KB
stdin
3
stdout
Standard output is empty