fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int x;
  5. scanf("%d",&x);
  6. if ( x>=90 ){
  7. printf(" s \n");
  8. }else if (( x<90 )&&(x>=80) ){
  9. printf(" a \n");
  10. }else if ( (x<80)&&(x>=60)){
  11. printf(" b\n");
  12. }else{
  13. printf(" d\n");}
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5320KB
stdin
59
stdout
 d