Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Grades
- {
- class Program
- {
- static void Main(string[] args)
- {
- double grade = double.Parse(Console.ReadLine());
- Print(grade);
- }
- static void Print(double grade)
- {
- if (grade <= 2.99)
- {
- Console.WriteLine("Fail");
- }
- else if (grade <= 3.49)
- {
- Console.WriteLine($"Poor");
- }
- else if (grade <= 4.49)
- {
- Console.WriteLine("Good");
- }
- else if (grade <= 5.49)
- {
- Console.WriteLine("Very good");
- }
- else if(grade <= 6)
- {
- Console.WriteLine("Excellent");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement