fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b;
  6. printf("Input a:");
  7. scanf("%d",&b);
  8. if(a>0&&a<=100){
  9. b=(int)a/10;
  10. if(b==9||10){
  11. printf("A\n");
  12. }else if(b==8){
  13. printf("B\n");
  14. }else if(b==7){
  15. printf("C\n");
  16. }else if(b==6){
  17. printf("D\n");
  18. }else{
  19. printf("E\n");
  20. }
  21. }
  22. return 0;
  23. }
Success #stdin #stdout 0s 5280KB
stdin
85
stdout
Input a: