Add a class statvars.cs & write the following:-

0
19

Class statVars

{

Int x;

Static int y=200;

Const Float pi=3.14f;

Read only bool flag;

Public statVars(int x ,bool flag)

{

this.x=x;

this.flag=flag;

}

Static void Main ()

{

Console.WriteLine(statVars.y);

Console.WriteLine(statVars.pi);

statVars s1=newstatVars(50,true);

statVars s2= newstatVars(100,false);

Console.WriteLine(s1.x+ “ “+s2.x);

Console.WriteLine(s1.flag+ “ “ s2.flag);

Console.ReadLine();

}

}