各位大佬帮我这个小弟看看这个简单的作业哪里出了问题

#include <stdio.h>
int main()
{
  int g;
  printf ("Enteryour exam mark(0..100):\n");
  scanf("d%",&g);
}
  int grade (int a)
   {
	int A,G,H,B,b,I,C,c,J,D,d,F,g;
   	int Grade;
  if (93<=g<=100)
     {
  	Grade=grade (A);
  	 }
  if (88<=g<=92)
     {
  	Grade=grade(G);
   	 }
  if (83<=g<=87)
     {
  	Grade=grade(H);
     }
  if (78<=g<=82)
     {
  	Grade=grade(B);
     }
  if (73<=g<=77)
     {
  	Grade=grade(b);
     }
  if (68<=g<=72)
     {
  	Grade=grade(I);
     }
  if (63<=g<=67)
     {
  	Grade=grade(C);
     }
  if (58<=g<=62)
     {
  	Grade=grade(c);
     }
  if (53<=g<=57)
     {
  	Grade=grade(J);
     }
  if (50<=g<=52)
     {
  	Grade=grade(D);
     }
  if (g<50)
     {
  	Grade=grade(F);
     }
   }
  int Grade
  switch(Grade)
  {
  	case'A':
  	printf("Your grade is A.\n");
  	break;
  	case'G':
  	printf("Your grade is A-.\n");
  	break;
  	case'H':
  	printf("Your grade is B+.\n");
  	break;
  	case'B':
  	printf("Your grade is B.\n");
  	break;
  	case'b':
  	printf("Your grade is B-.\n");
  	break;
  	case'I':
  	printf("Your grade is C+.\n");
  	break;
  	case'C':
  	printf("Your grade is C.\n");
  	break;
  	case'c':
  	printf("Your grade is C-.\n");
  	break;
  	case'J':
  	printf("Your grade is D+.\n");
  	break;
  	case'D':
  	printf("Your grade is D.\n");
  	break;
  	case'F':
  	printf("Your grade is F.\n");
  	break;
  	default:
  	break;
  }
    return (0);
}

他提示有三个错误,
在这里插入图片描述
帮帮忙吧,救救孩子

  • 0
    点赞
  • 1
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值