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

    case 'A':
    points = hours * 4;
    case 'B':
    points = hours * 3;
*/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";

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.