You are viewing a single comment's thread. Return to all comments →
Python 3
#!/bin/python3 n = int(input()) a = [] for _ in range(n): a_temp = int(input()) a.append(a_temp) for i in range(n): if a[i] >= 38: if a[i]%5 > 2:#round up a[i] = a[i] + (5-a[i]%5) else: a[i] = a[i] else: a[i] = a[i] for i in range(n): print(a[i])
Seems like cookies are disabled on this browser, please enable them to open this website
Grading Students
You are viewing a single comment's thread. Return to all comments →
Python 3