public static void Main(string[] args) { Student st = new Student(); Student st2 = new Student(); st.id = 23; st.name = " asdasdasd"; st2.id = 44; st2.name = "awerts"; Console.WriteLine("The naem is " + st.id); Console.WriteLine("The naem is" + st.name); Console.WriteLine("The naem is " + st2.id); Console.WriteLine("The naem is" + st2.name); st.Setnasme(22, "Dasare"); st.displaynames(); Student ss = new Student(22, "Dasare"); Student s3 = new Student(28); ss.displaynames(); Console.WriteLine(MyMath.square(5)); Console.WriteLine(MyMath.square(5.5)); Console.WriteLine("Hello" + MyMath.name); }
public static void Main(String [] args) { Console.WriteLine("Hello" + MyMath.name); Console.WriteLine("square of a given number is " + MyMath.square(2)); }