Copyright (c) 2014软件技术1班
// All rights reserved.
// 作 者:A17
// 完成日期:2014年11月11日
// 版 本 号:v1.0
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
int a, b, c;
Console.WriteLine("请输入第一条边的值");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("请输入第二条边的值");
b = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("请输入第三条边的值");
c = Convert.ToInt32(Console.ReadLine());
if (a + b > c && a + c > b && b + c > a)
{
Console.WriteLine("可以组成三角形");
if (a == b && b == c)
Console.WriteLine("
三角形的判断
最新推荐文章于 2022-12-26 20:32:05 发布