❔ ✅ beginner class and properties
i am doing basic program abt class and getting information from input but on the weight section when i run the code it doesnt show anything even when debugging couldnt figure it out











Console.WriteLine("how much does the animal weigh");
temp = Console.ReadLine();
animal.Weight = Convert.ToInt32(temp);
Console.WriteLine("what dimension did u use (kg/lb)");
Dimension = Console.ReadLine();
if (Dimension != "kg" && Dimension != "lb")
Console.WriteLine("typo try again");
return;
if (Dimension == "kg" && animal.Gender == "Female" && animal.Weight > 80)
{
Console.WriteLine("Cant accept your Animal due to its weight");
return;
}
if (Dimension == "lb" && animal.Gender == "Female" && animal.Weight > 176)
{
Console.WriteLine("Cant accept your Animal due to its weight");
return;
}
if (animal.Gender == "Male" && animal.Weight > 120)
{
Console.WriteLine("Cant accept your Animal due to its weight");
return;
}
if (Dimension == "lb" && animal.Gender == "Male" && animal.Weight > 264)
{
Console.WriteLine("Cant accept your Animal due to its weight");
return;
}
Console.WriteLine(animal.Name);
Console.WriteLine(animal.Breed);
Console.WriteLine(animal.Age);
Console.WriteLine(animal.Colour) ;
Console.WriteLine(animal.Weight);
}if (Dimension == "kg" && animal.Gender == "Female" && animal.Weight > 80)if (Dimension != "kg" && Dimension != "lb")
Console.WriteLine("typo try again");
return;
if (Dimension == "kg" && animal.Gender == "Female" && animal.Weight > 80)
{
Console.WriteLine("Cant accept your Animal due to its weight");
return;
}if (condition)
some stuff;
return;if (condition)
{
some stuff;
return;
}