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

3 answers

ssory gyus don't use a flowchat , using pseudo code
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
use a input and process and output.