Write a python program to calculate the number of seconds in the given days.
PROGRAM:
n=int(input("Enter the number of days:"))
s=n*(24*60*60)
print("Number of seconds in the "+ str(n)+" days:",s,"seconds")
OUTPUT:
Enter the number of days: 1
Number of seconds in the 1 days: 86400 seconds
No comments:
Post a Comment