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

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
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!

Related Questions