Computer Science, asked by ingeasmi4207, 8 months ago

In addition to taking marks as input, write code to take as input a student’s roll number and display his/her marks.
Here, roll numbers start from 0.
The first 5 lines will contain marks of students and the sixth line will contain roll number of the student whose marks are to be displayed.
Note: The following statement will print the marks of a student whose roll number is stored in the variable rollNumber :
System.out.println(marks[rollNumber]);

Answers

Answered by aatifnasir2009
0

Answer:

In addition to taking marks as input, write code to take as input a student's roll number and display his/her marks. - 18090589. ... Here, roll numbers start from 0. The first 5 lines will contain marks of students and the sixth line will contain roll number of the student whose marks are to be displayed.

Explanation:

please mark me as brainliest

Similar questions