Asked by micheal jack
Write an algorithm to print the number of months (use 30 days for a month)
and remaining days given the number of days,
use a flow chat
and remaining days given the number of days,
use a flow chat
Answers
Answered by
micheal jack
ssory gyus don't use a flowchat , using pseudo code
Answered by
oobleck
if there are d days, then
months = int(d/30)
the remaining days is m = d mod 30
or, if you don't have the mod function, it is d - 30m
months = int(d/30)
the remaining days is m = d mod 30
or, if you don't have the mod function, it is d - 30m
Answered by
micheal jack
use a input and process and output.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.