i wantto builda GPA in C# and want to a condtion which chek the value from user input. chek it if it is greater then 70 show A GRADE greater then 50 show B GRADE like and print it and also set is this char type value to switch and calculate the piont like

 /*  
    switch(GRADE)
    {
    case 'A':
    points = hours * 4;
    break;
    case 'B':
    points = hours * 3;
    break;
    }
    Consol.WriteLine(GRADE);
   Consol.WriteLine(GPA);
*/this just an idea

What's the actual problem you're having?

Do you mean something like this:

if (userinput > 70) GRADE = "A";
else if (userinput > 50) GRADE = "B";

Respected...!
My Problem has solved..!

Thank you..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.