Open Karding8 opened 2 hours ago
// Online C# Editor for free // Write, Edit and Run your C# code using C# Online Compiler
using System;
public class HelloWorld { public static void Main(string[] args) {
Console.WriteLine("English:"); int english = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Math:"); int math = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Science:"); int science = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("MAPEH:"); int Mapeh = Convert.ToInt32(Console.ReadLine()); double sum = english + math + science + Mapeh; double ave = sum / 4; Console.WriteLine("Average:" + ave); if (ave > 100) { Console.WriteLine("Invalid Grade"); } else if ( ave >= 98 ) { Console.WriteLine("With Highest Honrs"); } else if ( ave >= 95 ) { Console.WriteLine("With High Honors"); } else if ( ave >= 90 ) { Console.WriteLine("With Honors"); } else if ( ave >= 75) { Console.WriteLine("Passed"); } else { Console.WriteLine("Failed"); } }
}
// Online C# Editor for free // Write, Edit and Run your C# code using C# Online Compiler
using System;
public class HelloWorld { public static void Main(string[] args) {
}