using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace pro5
{
class Program
{
static void Main(string[] args)
{
/* addition of three subject marks*/
Console.WriteLine("enter student name");
string name=Console.ReadLine();
Console.WriteLine("enter 1 subject marks");
int m1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("enter 2 subjct marks");
int m2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("enter 3 subjct marks");
int m3 = Convert.ToInt32(Console.ReadLine());
int res = m1+m2+m3;
Console.WriteLine(name+" total marks is" + res);
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace pro5
{
class Program
{
static void Main(string[] args)
{
/* addition of three subject marks*/
Console.WriteLine("enter student name");
string name=Console.ReadLine();
Console.WriteLine("enter 1 subject marks");
int m1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("enter 2 subjct marks");
int m2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("enter 3 subjct marks");
int m3 = Convert.ToInt32(Console.ReadLine());
int res = m1+m2+m3;
Console.WriteLine(name+" total marks is" + res);
Console.ReadLine();
}
}
}