✅ 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
it simply runs the code asking for an input then finishes after that.
i mean, if there's nothing else after that, then it finishes
what else is it supposed to do?
you can use
while(condition){}
to make a loopLook at your
case
s 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 intervalsThere’s also the Convert.ToInt32 method being used which shouldn’t really be used
thank youuu i got it working now
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.