Answer to Question #225830 in Java | JSP | JSF for Ash

Question #225830

Placement season


1
Expert's answer
2021-08-13T16:13:05-0400
n       = int(input('number of student: '))
student = list(map(int, input().split()))

if __name__ == '__main__':
    print(0, end=' ')
    for i in range(1, n):
        t = 0
        for j in range(1, i):
            if student[j] >= student[i]:
                t += 1
        print(t, end=' ')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS