public static void Main()
Console.WriteLine("enter width");
width=double.Parse(Console.ReadLine());
Console.WriteLine("enter lenght");
lenght=double.Parse(Console.ReadLine());
public static void sum (double width, double lenght)
double cross, Smalben, Pmalben;
cross= Math.Sqrt((width*width)+(lenght*lenght));
Pmalben= ((2*width)+(2*lenght));
Console.WriteLine("cross is "+ cross+" S is "+Smalben+" P is "+Pmalben);
static void paint (double width, double lenght)
for (int i=0; i<width; i++)
for (int j=0; j<lenght; j++)