Minutes Calculator

Calculate total number of minutes from a age:

#include<iostream>
using namespace std;
void minutes(int d,int h,int m);
void main()
{
int d,h,m;
minutes(d,h,m);

}
void minutes(int d,int h,int m)
{
int min;
int d1,h1,m1;
d1=0; h1=0;m1=0;
cout<<"Enter Month"<<endl;
cin>>m;
cout<<"Enter Days"<<endl;
cin>>d;
cout<<"Enter Hours"<<endl;
cin>>h;
d=d*24;
min=(d+h)*60;
cout<<"Number of Minutes from "<<"  Day  "<<d1<<"  Month  "<<m1<<"  Hours  "<<h1<<"  To Current Calender Month "<<m<<"  are  "<<min<<endl;
}

Download:

To download this code click on the given link below:

Comments