how to write algorithm to display the marks of 100 students?
fff u
To write an algorithm to display the marks of 100 students, you can follow these steps:
Step 1: Declare an array to store the marks of the students. Let's call it "marks".
Step 2: Iterate from 1 to 100 using a loop. For each iteration, do the following:
a. Prompt the user to input the marks of the current student.
b. Store the marks in the "marks" array at the current index.
Step 3: Display the marks of all the students. Iterate from 1 to 100 using a loop. For each iteration, do the following:
a. Print the marks stored in the "marks" array at the current index.
Here is the algorithm in pseudocode:
```
1. Declare an array marks[100]
2. For i = 1 to 100
a. Prompt the user to input the marks of student i
b. Store the input marks in marks[i]
3. For i = 1 to 100
a. Print marks[i]
```
You can implement this algorithm in a programming language of your choice by converting the pseudocode into language-specific syntax.
for n=1..100
print mark(n)
next n