Tuesday, 30 June 2015

Program 3 : Write a program to convert days into months and days.

#include<stdio.h>

void main() 

{

    int a, b, c;

    printf(“Enter the days / n”);

    scanf(“ %d”, &a);

    b = a / 30;

    c = a % 30;

    printf(“month is : % d and days : % d”, b, c);

}

No comments:

Post a Comment