判断80 x 5与412的之间的大小关系-c#编程小实例

济南网站建设 2022年10月8日10:26:33C#教程判断80 x 5与412的之间的大小关系-c#编程小实例已关闭评论141阅读模式

关键代码:
internal class Program
{
static void Main(string[] args)
{

//判断80 x 5与412的之间的大小关系

int n1 = 80 * 5;
if (n1 == 412)
{

Console.WriteLine("80 x 5等于412");
}
else if (n1 > 412)
{

Console.WriteLine("80 x 5大于412");
}
else {
Console.WriteLine("80 x 5小于412");

}

 

Console.ReadKey();

}
}
}

济南网站建设
  • 本文由 发表于 2022年10月8日10:26:33
  • 转载请务必保留本文链接:http://news.hcsw666.com/345