using System; class CalcPay
{ public static void Main(String[] args)
{ int coat,trousers,money;
Console.WriteLine (“Enter coat number:”); coat = Convert.ToInt32(Console.ReadLine()); Console.WriteLine (“Enter trousers number:”); trousers = Convert.ToInt32(Console.ReadLine()); money = getPay (coat, trousers);
Console.WriteLine ( “total money = {0}”,money); }
public static int getPay(int c, int t) { } }
要求用以下三套测试数据测试程序: a) coat: 55, trousers: 70 b) coat: 55, trousers: 40