... roll number 13, 23, 55, 87 and 93 have scored first, second, third, fourth and fifth position respectively. Details of the program are as:
The program prompts the user to enter the roll number
Assume roll numbers can range from 1 to 100
First, use an if/else statement to verify that the user has entered a number between 1 and 100
Using switch statement, see if the roll number entered is one of those securing position
If the roll number entered is indeed one of the position holder, the position is displayed
Otherwise, a statement is displayed stating that the student is not a position holder
You are to write a program that checks whether a person is a position holder or not. Students with?
- Posted:
- 3+ months ago by shujaat h...
- Topics:
- number, program, roll, first, person, detail, position, student, write, fourth, numbers
Details:
Answers
No answers have yet been posted. Add your answer to this question.