Find Days and Months

C program to find the number of days and months on the basis of given input

In this post, I shared a C program to find the total number of months and the remaining days on the basis of the given input from the user.



#include <stdio.h> 
#include <conio.h>
void  main()
{
 int day,month,day1;
 printf("enter the number of days:\n");
 scanf("%d",&day);
 month=day/30;
 day1=day%30;
 printf(“month is =%d”,month);
 printf(:days are =%d,day1);
 getch();
}











Happy Coding :)

Comments

Popular posts from this blog

MultiSelection of Item in Recycler View

Upload Image From Android To Php Server

Merge Sort