课堂小计
2015-07-31 22:36
302 查看
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入第一个数字");//“”屏幕显示出来的文字
string A = Console.ReadLine();//()内为输入的数字
int A1 = Convert.ToInt32(A);//将A的值转入到A1里面
Console.WriteLine("请输入第一个数字");
string B = Console.ReadLine();
int B1 = int.Parse(B);
int W =A1*B1;//赋值求A1*B1
Console.WriteLine("结果是"+W);//'' ''显示的数字 +W=A1*B1:
if (W >= 10 && W < 100) //当w同时符合两边条件时 得出两位数是整数
Console.WriteLine("您得出来的是两位数整数");
else
if (W < 10) // 条件成立 得出 最后的数小于 10
Console.WriteLine("最后的数小于 10");
else
Console.WriteLine("最后的数大于 100");
Console.ReadLine(); //结束语
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入第一个数字");//“”屏幕显示出来的文字
string A = Console.ReadLine();//()内为输入的数字
int A1 = Convert.ToInt32(A);//将A的值转入到A1里面
Console.WriteLine("请输入第一个数字");
string B = Console.ReadLine();
int B1 = int.Parse(B);
int W =A1*B1;//赋值求A1*B1
Console.WriteLine("结果是"+W);//'' ''显示的数字 +W=A1*B1:
if (W >= 10 && W < 100) //当w同时符合两边条件时 得出两位数是整数
Console.WriteLine("您得出来的是两位数整数");
else
if (W < 10) // 条件成立 得出 最后的数小于 10
Console.WriteLine("最后的数小于 10");
else
Console.WriteLine("最后的数大于 100");
Console.ReadLine(); //结束语
}
}
}
相关文章推荐
- GO语言练习:反射
- Golang 简介及配置
- Android大图片裁剪终极解决方案(中:从相册截图)
- <SVN> 代码库迁移
- 华为机试题:超长正整数相加
- Android 动画系列
- (╭ ̄3 ̄)╭ 小希的迷宫II
- 四重简并位点
- AngularJS' Internals In Depth(深入理解 AngularJS)
- 如何设计系统的错误码及错误信息
- STL学习记录(十五):Stack
- 如何设计系统的错误码及错误信息
- 我跟敏捷开发的故事--背景
- Spring MVC 中的基于注解的 Controller
- <Java>short与byte在有符号大数据时的转换
- 【IDF实验室】图片里的英语
- CATranstion动画
- php5.4n 长链接 bug
- Android大图片裁剪终极解决方案(上:原理分析)
- Android固定标题栏/底栏方法