using System;
namespace ConsoleApplication1
{
class MyMethod
{
public static int A(int a)
{
return a*a;
}
public static float A(float a)
{
return a*a;
}
}
class Test
{
static void Main(string[] args)
{
Console.WriteLine("请您输入一个整数:");
int result1=MyMethod.A(int.Parse(Console.ReadLine()));
Console.WriteLine("请您输入一个小数:");
float result2=MyMethod.A(float.Parse(Console.ReadLine()));
Console.WriteLine("您要的结果是{0} {1}",result1,result2);
}
}
}