谁帮忙改一下呀!!!!!!!!!!!!!!!!!
using System;public class bijiao
{
private double[] a = new double[10];
private double[] b = new double[10];
public bijiao()
{
Console.WriteLine("请输入数组a的值");
for (int i = 0; i <= 9; i++)
{
Console.WriteLine("a[" + i + "]=");
a[i] = double.Parse(Console.ReadLine());
}
Console.WriteLine("请输入数组b的值");
for (int k = 0; k <= 9; k++)
{
Console.WriteLine("b[" + k + "]=");
b[k] = double.Parse(Console.ReadLine());
}
}
void fangfa()
{
String str = "";
if (a[i] == b[k])
{
str = string.Format("a[" + i + "]=b[" + k + "]={0}", a[i]);
Console.WriteLine(str);
}
}
public static void Main()
{
bijiao b1 = new bijiao();
b1.fangfa();
}
}