Problem in solving

how to differentiate between student and instructor query wwhile taking input

hello @kartik-malik
using number 1 and 2.

1 is for student
2 is for instructor