早教吧 育儿知识 作业答案 考试题库 百科 知识分享

C#上下文不存在“优量中差”我用的ABCD依然不存在。。。usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceP615{classProgram{staticvoidMain(string[]args){intx;chary=A,

题目详情
C# 上下文不存在 “优量中差” 我用的A B C D 依然不存在。。。using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace P61_5{ class Program { static void Main(string[] args) { int x; char y=A, B, C, D; Console.WriteLine("你考了多少分?:"); string s = Console.ReadLine(); x = int.Parse(s); if (x > 100 || x < 0) Console.WriteLine("输入分数错误!"); else { if (x >= 80) { if (90
▼优质解答
答案和解析
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace P61_5{ class Program { static void Main(string[] args) { int x; char y; Console.WriteLine("你考了多少分?:"); string s = Console.ReadLine(); x = int.Parse(s); if (x > 100 || x < 0) Console.WriteLine("输入分数错误!"); else { if (x >= 80) { if (90