using System;
namespace
ConsoleApplication2
{
class class1
{
enum marks { verybad, bad, avg, good, verygood };
public static void
{
marks
priority = marks.verybad;
string
mark = Console.ReadLine();
if
(Convert.ToInt32(mark) < 30)
{
priority = marks.verybad;
}
if
(Convert.ToInt32(mark )>= 30 && Convert.ToInt32(mark) < 50)
{
priority = marks.bad;
}
if
(Convert.ToInt32(mark )>= 50 && Convert.ToInt32(mark) < 75)

daoo daooPosted Dec 13, 2010, 8:49 PM
suggestion: you can replace if ... if into if else if in these codes.