public static void Main()
double a = double.Parse(Console.ReadLine());
double b = double.Parse(Console.ReadLine());
Computer c1 = new Computer("hp" ,Computer.chooseSize(a , b ), 15 );
Console.WriteLine(c1.ToString());
Console.WriteLine(c1.Type);
public Computer(string type, double size, double wight)
public string Type { get; set; }
public double Size { get; set; }
public double Wight { get; set; }
public override string ToString()
return this.type + " " + this.wight+ " " + this.size ;
public static double chooseSize(double a, double b)