CSS
 
 
  Normal
  0
  
  
  
  
  false
  false
  false
  
  EN-US
  X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  

 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 


 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-qformat:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;}

public struct student

{

public int rollno;

public int m1;

public int m2;

public int m3;

public int tot;

public double per;

public string name;

}

public void Main()

{

student[] s = new student[2];

int i = 0;

for (i = 1; i <= 1; i++) {

Console.WriteLine("Enter the Roll Number of Student:=>");

s[i].rollno = Console.ReadLine();

Console.WriteLine("Enter the Name of Student:=>");

s[i].name = Console.ReadLine();

Console.WriteLine("Enter the Marks of First Subject:=>");

s[i].m1 = Console.ReadLine();

Console.WriteLine("Enter the Marks of Second Subject:=>");

s[i].m2 = Console.ReadLine();

Console.WriteLine("Enter the Marks of Third Subject:=>");

s[i].m3 = Console.ReadLine();

s[i].tot = s[i].m1 + s[i].m2 + s[i].m3;

Console.WriteLine("Roll No:=>" + s[i].rollno);

Console.WriteLine("Name:=>" + s[i].name);

Console.WriteLine("Total:=>" + s[i].tot);

s[i].per = s[i].tot / 3;

Console.WriteLine("Percentage:=>" + s[i].per);

}

Console.ReadLine();

}