using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace arrmarksheet
{
class Program
{
static void Main(string[] args)
{
int[] roll = new int[3];
int[] m1 = new int[3];
int[] m2= new int[3];
int[] m3 = new int[3];
int[] tot = new int[3];
float[] per = new float[3];
string[] name = new string[3];
int i;
for (i = 0; i < 3; i++)
{
Console.WriteLine("Enter Roll Number");
roll[i] = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter Name");
name[i] = Console.ReadLine();
Console.WriteLine("Enter Marks1");
m1[i] = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter Marks2");
m2[i] = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter Marks3");
m3[i] = Convert.ToInt32(Console.ReadLine());
}
for (i = 0; i < 3; i++)
{
tot[i] = m1[i] + m2[i] + m3[i];
Console.WriteLine("total" + tot[i]);
per[i] = tot[i]/ 0.3f;
Console.WriteLine("percentage" + per[i]);
}
Console.ReadLine();
}
}
}