Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

ALGORITHM:

Step1: Start

Step2: Read number of days

Step3:Enter number of days

Step5:Calculate number of days

Step6:Stop

PROGRAM:

#include<stdio.h>

void main()

printf(“Enter days\n”);

Scanf(“%d”,&days);

Months=days/30;

Days=days%30;

Printf(“Months=%d Days =%d,months,days);

Output:

Enter days

265

Months=8 Days=25

You might also like