VideoBar

This content is not yet available over encrypted connections.

Wednesday, October 5, 2016

C Tutorial 6- Calculate months and days

#include<stdio.h>
main()
{
    int month,days;
    printf("Enter days:");
    scanf("%d",&days);
    printf("%d Months and  %d days\n\n\n",(days/30),(days%30));
}

Output

No comments:

Post a Comment