Computer Science, asked by anonymous1993, 11 months ago

Write an algorithm to find the highest

marks obtained by student(s) in

"C programming" in a batch of 10 students.​

Answers

Answered by Jasleen0599
8

Step 1: Start

Step 2: 10 students are given variable as a, b, c, d, e, f, g, h, i, j.

Step 3: Read these variables a, b, c, d, e, f, g, h, i, j.

Step 4: If student 'a' has received highest marks than display 'a has got highest marks'

Step 5: else If student 'b' has received highest marks than display 'b has got highest marks'

Step 6: else If student 'c' has received highest marks than display 'c has got highest marks'

Step 7: else If student 'd' has received highest marks than display 'e has got highest marks'

Step 8: else If student 'e' has received highest marks than display 'e has got highest marks'

Step 9: else If student 'f' has received highest marks than display 'f has got highest marks'

Step 10: else If student 'g' has received highest marks than display 'g has got highest marks'

Step 11: else If student 'h' has received highest marks than display 'h has got highest marks'

Step 12: else If student 'i' has received highest marks than display 'i has got highest marks'

Step 13: else display 'j has got the highest marks'

Step 14: Stop

Similar questions