public static string[] vietel = new string[] {"086","096","097","098","032","033","034","035","036","037","038","039"};
public static string[] vina = new string[] {"088","091","094","083","084","085","081","082"};
public static string[] mobi = new string[] {"089","090","093","070","079","077","076","078"};
public static string[] number = new string[10];
public static void Main()
Console.WriteLine("nhap so mang");
i = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("nhap so dien thoai");
for ( phone = 0; phone < i; phone++)
Console.WriteLine("so dien thoai" +phone);
number[phone] = Console.ReadLine();
string k = ProcessOper(phone);
Console.WriteLine("so viettel");
Console.WriteLine("so vina");
Console.WriteLine("so mobi");
Console.WriteLine("khong thuoc nha mang nao");
public static int ProcessOper(string phone)
string so = number[phone];
bool viettel = ProcessOperViettel(so);
bool vina = ProcessOperVNP(so);
bool mobi = ProcessOperVMS(so);
public static int ProccesPhoneNumber(int phone)
public static bool ProcessOperViettel(string so)
for ( i = 0; i < vietel.Length ; i ++)
if (number[so] == vietel[i] )
public static bool ProcessOperVNP(string so)
for ( i = 0; i < vina.Length ; i ++)
if (number[so] == vina[i] )
public static bool ProcessOperVMS(string so)
for ( i = 0; i < mobi.Length ; i ++)
if (number[so] == mobi[i] )