Answer: #Python Program to Convert seconds # into hours, minutes and seconds def convert(seconds): seconds = seconds % (24 * 3600) hour = seconds // 3600 seconds %= 3600 minutes = seconds // 60 seconds %= 60 return “%d:%02d:%02d” % (hour, minutes, seconds) # Driver program n = 12345 print(convert(n)) Explanation: Here you can also take the input from user just by putting n=int(input(“Enter the number “)) at the place of n=12345 this answer is in Python language as u have not mentioned about the language☺ mark as brainiest if u like it❤ Reply
Answer:
#Python Program to Convert seconds
# into hours, minutes and seconds
def convert(seconds):
seconds = seconds % (24 * 3600)
hour = seconds // 3600
seconds %= 3600
minutes = seconds // 60
seconds %= 60
return “%d:%02d:%02d” % (hour, minutes, seconds)
# Driver program
n = 12345
print(convert(n))
Explanation:
Here you can also take the input from user just by putting n=int(input(“Enter the number “))
at the place of n=12345
this answer is in Python language as u have not mentioned about the language☺
mark as brainiest if u like it❤