Tuesday, 25 February 2014

Tagged Under:

Program to convert a given number of days into month and days

Share














Source Code

#include<stdio.h>
int main ()
{
int months, days ;

printf("Enter days\n") ;
scanf("%d", &days) ;

months = days / 30 ;
days = days % 30 ;

printf("Months = %d Days = %d", months, days) ;
}

Output


0 comments:

Post a Comment

Contact Us

Want to ask anything? Be our guest, give us a message.

Name Email * Message *