Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Project01
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int phy,chem,bio,math,stat; Console.WriteLine("Please Enter The Marks Of Phy"); phy = Convert.ToInt32(Console.Read()); Console.WriteLine("You Have Entered +" + phy); Console.WriteLine("Please Enter The Marks of chem"); chem = Convert.ToInt32(Console.Read()); Console.WriteLine("You Have Entered +" + chem); Console.WriteLine("Please Enter The Marks Of bio"); bio = Convert.ToInt32(Console.Read()); Console.WriteLine("You Have Entered +" + bio); Console.WriteLine("Please Enter The Marks Of math"); math = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("You Have Entered +" + math); Console.WriteLine("Please Enter The Marks Of stat"); stat = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("You Have Entered +" + stat); float total = phy + chem + bio + math + stat ; float perage = total / 500 * 100; float average = total / 5 ; Console.WriteLine("your Total Obtained Marks are +" + total); Console.WriteLine("your Percentage is +" + perage); Console.WriteLine("your Average Marks are +" + average); Console.ReadLine(); } } }
run
|
edit
|
history
|
help
0
LCM Q 3
Get Error Message Based on String
CRC 8 bit Table calculation
StackOverflowException
timer
ref and out
CommandForce2
asdfghjujytgrf
Arrange Hex string in a new one as a byte array declaration
ArrayList list merge_collections