using System;
class Addition
{
int H,E,M,sc,sn,so=0;
int sum=0;
float per=0;
public void insert()
{
Console.WriteLine("Enter your Value of Hindi");
H=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter your Value of English");
E=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter your Value of Maths");
M=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter your Value of Science");
sc=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter your Value of Sanskrit");
sn=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter your Value of Social Science");
so=Convert.ToInt32(Console.ReadLine());
}
public void result()
{
sum=H+E+M+sc+sn+so;
per=sum*100/600;   
}
public void print()
{
Console.WriteLine("Your Total is: "+sum+"  And Your Percentage is: "+per);
}
}
class Implementation
{
public static void Main(string[] arg)   
{
Addition obj=new Addition();
obj.insert();
obj.result();
obj.print();
Console.Read();       
}
}

Like it on Facebook, Tweet it or share this article on other bookmarking websites.

Comments (0)

There are no comments posted here yet

Why do you read books?

To know the real purpose of reading books which varies in most people!
No answer selected. Please try again.
Please select either existing option or enter your own, however not both.
Please select minimum 0 answer(s) and maximum 7 answer(s).
/polls/funny-polls/6343-why-do-you-read-books.json?task=poll.vote
6343
radio
[{"id":"21905","title":"To learn something new","votes":"48","type":"x","order":"1","pct":49.48,"resources":[]},{"id":"21906","title":"To learn cooking by reading recipe books","votes":"3","type":"x","order":"2","pct":3.09,"resources":[]},{"id":"21907","title":"To gain real knowledge","votes":"36","type":"x","order":"3","pct":37.11,"resources":[]},{"id":"21908","title":"Only to mug up for the exams","votes":"3","type":"x","order":"4","pct":3.09,"resources":[]},{"id":"21909","title":"To try to fall asleep","votes":"4","type":"x","order":"5","pct":4.12,"resources":[]},{"id":"21910","title":"To impress your new girlfriend","votes":"0","type":"x","order":"6","pct":0,"resources":[]},{"id":"21911","title":"Other reasons.....please comment","votes":"3","type":"x","order":"7","pct":3.09,"resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] ["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"] 350
bottom 200
No married couple wants to end up getting divorced. It is not like they have planned for it. They try to put up with their partners for as long as they
Due to our modern lifestyle, we feel that digestion related disorders are a common problem. Thus, we neither give importance to them nor seek any help
The bond of marriage brings the two people together. Initially, everything may seem okay and both of them slowly start discovering each other in the journey.
Your online reputation is important You should know that it takes decades to make your reputation but to ruin it you need just couple of minutes and this
Basics of Cookies is Asp.Net Through this article you are able to know about the following points:1> What are the cookies?2> How to write and read cookies
  Introduction A Web server hosts information in the form of HTML files. The Web server is usually passive and merely acts as an efficient interface
Best language to learn .NET language is the best thing to learn. It has somewhat similar syntax as java and it’s a Microsoft Technology moreover it
If you decide to have an  opt-in list is not just a matter of sending your subscribers your promotional newsletters or catalogs. There are several things