counter

Free Hit Counter

Simple C program to convert years into minutes



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:

Unknown said...

Why u have taken 31536000 as u can also take m=y*365*24*60

Mukesh Makwana said...

You don't have knoelage of c programing

Unknown said...

awesome bro

Post a Comment