using System.Collections.Generic;
using System.Threading.Tasks;
public Student(string name,string MSSV,int age,bool gender)
Console.Write("Nhap ten sv: ");
this.name = Console.ReadLine();
Console.Write("Nhap ma so sv: ");
this.MSSV = Console.ReadLine();
Console.Write("Nhap tuoi: ");
this.age = Convert.ToInt32( Console.ReadLine());
Console.Write("Nhap gioi tinh: ");
this.gender= Convert.ToBoolean(Console.ReadLine());
Console.WriteLine("Ten sv: " +this.name);
Console.WriteLine("MSSV: " + this.MSSV);
Console.WriteLine("Tuoi: " + this.age);
Console.WriteLine("Gioi tinh: Nam");
Console.WriteLine("Gioi tinh: Nu");
this.SV = new Student[n];
public void add(Student addSV)
for(int i=0;i<SV.Length;i++)
Console.WriteLine("Nhap mssv can tim kiem");
string mssv = Console.ReadLine();
foreach (Student i in SV)
static void Main(string[] args)
Console.WriteLine("nhap so sv: ");
int n = Convert.ToInt32(Console.ReadLine());
Student sv0 = new Student("Vo Hong Phong", "1", 20, true);
Student sv1 = new Student("Hung oc cho", "1", 20, false);
Student sv2 = new Student("Nguyen Van A", "1", 20, true);
Student sv3 = new Student("Vo Hong Phong", "1", 20, true);