O.o
I am going to assume that you are a Novice in a programming. The compiler is telling you everything you need to know: all of the code paths in your method AcuteObtuseTester do not return values.
What is confusing is that you have defined a return type of float but you don't return anything in any code paths? Plainly put, I am not sure what your intent is here.
Anyway, you can change your code like this:
public string AcuteObtuseTester(int x)
{
if (x <= 90)
{
return "Your Angle Is Acute";
}
else if ((x > 90) && (x <= 180))
{
return "Your Angle Is Obtuse";
}
else
{
return "Invalid";
}
}
public static int Main()
{
AcuteObtuse acuteobtuse = new AcuteObtuse();
Console.WriteLine(acuteobtuse.AcuteObtuseTester(66 ));
return 0;
}
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========