c program to check display days and


C program to check display days and month

main()

{

          int months, days;

          clrscr();

          printf("ENTER DAYS: ");

          scanf("%d", &days);

          months=days/30;

          days=days%30;

          printf("\nMONTHS = %d   DAYS = %d", months, days);

          getch();

}

 

OUTPUT :

Enter days: 35

Months=1  Days=5

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: c program to check display days and
Reference No:- TGS0159284

Expected delivery within 24 Hours