fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. // your code goes here
  8. }
  9. }
Success #stdin #stdout 0.02s 23752KB
stdin
int mark ;
            Console.Write(" Enter your mark : ");
            while(!int.TryParse(Console.ReadLine() , out mark))
            {
                Console.WriteLine("Please! Enter Number :");
            }
            if( mark >= 90 && mark <= 100 )
            {
                Console.WriteLine(" Grade is A ");
                
            }
            else if ( mark < 90 && mark >= 70 ) 
            {
                Console.WriteLine(" Grade is B ");
            }
            else if ( mark < 70 && mark >= 60 ) 
            {
                Console.WriteLine(" Grade is C ");
            }
            else if ( mark < 60 && mark >= 50 ) 
            {
                Console.WriteLine(" Grade is D ");
            }
            else
            {
            Console.WriteLine(" Grade is F ");
            }
stdout
Standard output is empty