Q. Write a module to input total number of days and find the total number of months and remaining days after months, and display it in another program.
Answer =
Module name depend on user’s mind.
def count(x) : print ("No. of month :- ", (x // 30)) print ("Remaining days :- ", (x % 30))
Output :-
>>> count(598)
No. of month :- 19
Remaining days :- 28
>>>
>>> count(100)
No. of month :- 3
Remaining days :- 10
>>>
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )