INPUT:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ma_i2
{
class Program
{
static void Main(string[] args)
{
double side1, side2, side3;
Console.WriteLine("Please
enter side a");
side1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Please
enter side b");
side2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Please
enter side c");
side3 = Convert.ToInt32(Console.ReadLine());
if((side1==side2)||(side1==side3)||(side2==side3))
{
Console.WriteLine("given triaangle is isoscles");
}
else
if((side1==side2)&(side2==side3)&(side1==side3))
{
Console.WriteLine("given triengle is equilitarial");
}
else
{
Console.WriteLine("given triengle is scaleen");
}
}
}
}
No comments:
Post a Comment