ads

Sunday, 28 August 2016

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

#include<stdio.h>
#include<conio.h>
void main()
{
  int a,b,c;
  printf("enter numbers of days:");
  scanf("%d",&a);
  b=a / 30;
  c=a % 30; 
  printf("month:%d",b);
  printf("days:%d",c);
  getch();
}

No comments:

Post a Comment