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

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

ssory gyus don't use a flowchat , using pseudo code

use a input and process and output.

As a text-based AI, I am unable to create flowcharts directly. However, I can assist you by providing a step-by-step algorithm to solve the problem. Here's an algorithm to print the number of months and remaining days given a specific number of days:

1. Start the algorithm.
2. Take input for the total number of days.
3. Initialize a variable called "months" to 0.
4. Calculate the number of months by dividing the total number of days by 30 and assign the result to the "months" variable.
5. Calculate the remaining days by taking the modulus of the total number of days with 30.
6. Print the output as "Number of months: [months]" and "Remaining days: [remaining days]".
7. End the algorithm.

Please note that this algorithm assumes there are 30 days in a month. If you wish to use a different duration for a "month," you can adjust the calculation accordingly.

Here is a flowchart for an algorithm to print the number of months and remaining days, given a certain number of days:

```
Start
|
V
Enter the number of days
|
V
Initialize month_count to 0
While days >= 30
|
V
Increment month_count by 1
Subtract 30 from days
|
V
Print month_count and remaining days
|
V
Stop
```

Explanation of the flowchart:
- When the program starts, it prompts you to enter the number of days.
- It then initializes a variable called month_count to 0, which will keep track of the number of months.
- In the while loop, it checks if the number of days is greater than or equal to 30. If it is, it means there is at least one complete month.
- If there is a complete month, it increments the month_count by 1 and subtracts 30 from the number of days.
- The loop continues until there are fewer than 30 days remaining.
- Finally, it prints the month_count and the remaining days as the output.

Note: This flowchart assumes that the number of days entered is a positive integer. You can modify it according to your specific requirements if needed.