Program:-16
Aim:-Write program for enter marks of five subject & find class of given percentage.
Input:-
#include< stdio.h >
#include< conio.h >
void main( )
{
int a,b,c,d,m,y;
clrscr( );
printf("Enter days=");
scanf("%d",&a);
y=a/365;
b=a%365;
m=b/30;
c=b%30;
d=c;
printf("\nYears:%d",y);
printf("\nMonths:%d",m);
printf("\nDays:%d",d);
getch( );
}
Output:-