In an array consisting of 30 integers, the grades of 10 students are entered, it is necessary to display the grades
September 17, 2021 | education
| In an array consisting of 30 integers, the grades of 10 students are entered, it is necessary to display the grades in the form of a table: in the first column, the student’s number, in the second his grades.
program zz1;
const n = 30; // set the number of students
var a: array [1..n] of integer; // describe an array of integer type
i: integer; // declare an integer variable for the loop
begin
for i: = 1 to 10 do // enter data into the array from the keyboard
begin
writeln (‘enter grade’, i, ‘th student’);
readln (a [i]);
end;
writeln (‘#’: 3, ‘Ball’: 5); // display the answer in the form of a table in the format of three characters for the student’s number and five characters for his grade
for i: = 1 to 10 do
writeln (i: 3, a [i]: 5);
end.
One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.