fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Console.WriteLine("Enter Mark");
  8. int mark = int.Parse(Console.ReadLine());
  9. if (mark >= 90 )
  10. {
  11. Console.WriteLine("A");
  12. }
  13. else
  14. {
  15. if (mark >= 80)
  16. {
  17. Console.WriteLine("B");
  18. }
  19. else
  20. {
  21. if (mark >= 70)
  22. {
  23. Console.WriteLine("C");
  24. }
  25. else
  26. {
  27. if (mark >= 60)
  28. {
  29. Console.WriteLine("D");
  30. }
  31. else
  32. {
  33. Console.WriteLine("F");
  34. }
  35. }
  36. }
  37. }
  38. }
  39. }
Success #stdin #stdout 0.02s 26260KB
stdin
75
stdout
Enter Mark
C