C
C#17mo ago
Ryan Farrell

✅ Need some help (super beginner)

Hey im really new to coding and im confused on what to do here, im trying to make a student grader that can convert the mark to high distinction, distinction, credit and so on.
7 Replies
Ryan Farrell
Ryan FarrellOP17mo ago
it simply runs the code asking for an input then finishes after that.
ero
ero17mo ago
i mean, if there's nothing else after that, then it finishes what else is it supposed to do?
Feast
Feast17mo ago
you can use while(condition){} to make a loop
Pobiega
Pobiega17mo ago
Look at your cases thou. switch(grade) will actually look at the value, its not just 5 if statements so either you remove the switch and use ifs, or you use the switch and have proper case patterns that match your grade intervals
Moods
Moods17mo ago
There’s also the Convert.ToInt32 method being used which shouldn’t really be used
Ryan Farrell
Ryan FarrellOP17mo ago
thank youuu i got it working now
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server