using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; namespace program
{
class Program
{
static void Main(string[] args)
{
//if(条件表达式) //条件表达式判断为true,则执行【表达式i】;为false,则执行下面的语句
//{【表达式i】} //如果条件表达式不止一个,应用逻辑运算符连接
//else if() //同上
//{}
Console.Write("请输入分数:");
int i = Convert.ToInt32(Console.ReadLine());
if (i < 60)
{
Console.WriteLine("居然不及格,你已经托班级后腿啦!加油吧!");
}
else if (i >= 60 && i < 70)
{
Console.WriteLine("刚及格而已,你的目标就这么多么?");
}
else if (i >= 70 && i < 80)
{
Console.WriteLine("上升空间很大,继续努力!");
}
else if (i >= 80 && i < 90)
{
Console.WriteLine("成绩还不错,继续努力。");
}
else    //嵌套
{
if(i>=90&&i<100)
{
Console.WriteLine("很好,继续保持,注意细节。");
}
else
{
Console.WriteLine("满分,表现很好。");
}
}
Console.ReadLine(); }
}
}

  

随机推荐

  1. Windows的历史zt

    原文地址:http://windows.microsoft.com/zh-CN/windows/history#T1=era0 1975–1981:Microsoft 起步 Microsoft 联合创 ...

  2. TLC是什么

    TLC = Triple-Level Cell,即3bit/cell,它的寿命短,速度慢,约500-5000次擦写寿命. 现在U盘多为MLC,TLC也有一部分,将来TLC会占大部分市场. 一种名为TL ...

  3. delphi 基础书籍推荐

    本文所推荐的书,我均仔细读过,受益良多. 1. Pascal 精要.下载Pascal精要 本书讲Pascal 语言基本知识. 2. Object Pascal 参考(中英文对照版).下载Object ...

  4. Android之CookieStore的持久化

    CookieStore是一个对象,有的服务端 ,比如.net,保持登录状态不是用httpclient.addHeader(“cookie”,SessionId),而是用httppost.setCook ...

  5. nginx 通过rsyslog发日志 rsyslog服务器挂掉 日志丢失问题

    nginx 配置: user nginx; worker_processes 1; syslog local5 nginx-zjzc01; rsyslog 服务器收到的消息: -rw-r--r-- 1 ...

  6. cygwin在Windows8.1中设置ssh的问题解决

    为了在Windows 8.1上直接使用Linux环境和hadoop开发,装了cygwin,同时设置ssh无密码登录.   但正常ssh-keygen后复制到authorised_keys后登录出现提示 ...

  7. Linux(ubuntu)使用dd从iso制作win7安装u盘(读卡器一样),以及备份分区

    转自我的独立博客:alanslab.cn 先吐个槽,早知道windows越用越慢,没想到太久不用还会坏... 昨天就遇到了这样一件事,电脑的光驱早拆了换硬盘托架了,只好翻出来以前手机的sd卡开刀,网上 ...

  8. mongoose post方法总结and疑点

    官方文档代码: var schema = new Schema(..); schema.post('save', function (doc) { console.log('this fired af ...

  9. saiku中多cube排序问题

    如题,一个schema中如果有多个cube(常有),那cube之间是如何排序显示的? 我们看一下OlapMetaExplorer.java文件的getConnection方法,其中有一行 Collec ...

  10. Matrix(多线程dp)

    Matrix Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Sub ...