I have above datatable.
Number is >=75 and Number<=100, Grade will A
Number is >=60 and Number<=74, Grade will B
Number is >=45 and Number<=59, Grade will C
Number is >=30 and Number<=44, Grade will D
Number is >=0 and Number<=29, Grade will E
I don’t want to use if-else, instead, can I use switch, also as per number i need to update the grade in DataTable.
Any help will be highly appreciated.