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. android 设置头像以及裁剪功能

    在android的开发过程中,经常遇到设置用户头像以及裁剪图像大小的功能.昨天我遇到了设置用户头像的功能,开始不知道怎么搞,在技术群里问也没人回 答,就研究了微信用户设置头像的功能,了解到用户设置图像 ...

  2. javascript线程解释(setTimeout,setInterval你不知道的事)

    john resig写的一篇文章: 原文地址:http://ejohn.org/blog/how-javascript-timers-work/ 作为入门者来说,了解JavaScript中timer的 ...

  3. /etc/security/limits.conf 配置

    <pre name="code" class="python">* soft nofile 65535 * hard nofile 65535 * ...

  4. c# 搭建服务端 byte[] 处理(3)

    数据的传输中,为防止数据传输过程中被获取解析 造成数据的不安全,一般都会采取各类的方式对数据进行加密.压缩等操作,在客户端或服务端以相同的算法解析即可获得数据,一定程度上减小了数据在中间过程被获取数据 ...

  5. Dot模板的使用小结2

    <!doctype html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  6. ebs清除并法管理器所清除的表

    In this Document   Goal   Solution   References Applies to: Oracle Concurrent Processing - Version 1 ...

  7. 开源 免费 java CMS - FreeCMS1.9 简历管理

    项目地址:http://code.google.com/p/freecms/ 简历管理 管理当前管理网站的简历数据. 1. 回复简历 选择须要回复的简历.然后点击"回复". 注意: ...

  8. bp神经网络及matlab实现

    本文主要内容包含: (1) 介绍神经网络基本原理,(2) AForge.NET实现前向神经网络的方法,(3) Matlab实现前向神经网络的方法 . 第0节.引例  本文以Fisher的Iris数据集 ...

  9. openstack之neutron linuxbridge + vlan组网

    linuxbridge是和linuxbridge plugin匹配的core agent,主要实现L2层的功能和security group的功能.security group的功能逐渐会被neutr ...

  10. matlab GUI之自定义菜单小结

    自定义菜单 1.uimenu对象 h=uimenu('PropertyName','ProperValue') h=uimenu(parent,'PropertyName','ProperValue' ...