#include<stdio.h>
#include<conio.h>
void main()
{
int years,months,days;
clrscr();
printf("\n Enter the number of years: ");
scanf("%d",&years);
months = 12 * years;
days = 365 * years;
printf("\n Total Months are : %d",months);
printf("\n Total Days are : %d",days);
getch();
}
OUTPUT:
years.c |
RELATED PROGRAMS
c. Writea program to convert years intomonths and days.
d. Write a program to solve Quadratic Equation.
d. Write a program to solve Quadratic Equation.
No comments:
Post a Comment