Q:Write a program that prints time in minutes when time in years is input by the user
#include
#include
void main()
{
float y,m;
clrscr();
printf("\tEnter no. of years:");
scanf("%f",&y);
m=y*31536000;
printf("\t\tno. of minutes:%f\n",m);
getche();
}
3 comments:
Why u have taken 31536000 as u can also take m=y*365*24*60
You don't have knoelage of c programing
awesome bro
Post a Comment