/*Conversion brings the month and day Program*/
#include"stdio.h"
#include"conio.h"
void main()
{
clrscr();
int Day,Month;
printf("Enter Days");
scanf("%d",&Day);
Month=Day/30;
Day=Day%30;
printf("Month=%d,Day%d",Month,Day);
getch();
}
#include"stdio.h"
#include"conio.h"
void main()
{
clrscr();
int Day,Month;
printf("Enter Days");
scanf("%d",&Day);
Month=Day/30;
Day=Day%30;
printf("Month=%d,Day%d",Month,Day);
getch();
}
No comments:
Post a Comment
Thank you for visit this site. You will get many programming news from here and learn programming very easily.