void choice( int c)
{
cout<<"Enter your choice:"<<endl;
cout<<"Press 1 to convert into 12 hr notation"<<endl;
cout<<"Press 2 to convert into 24 hr notation"<<endl;
cin>>c;
}
void display(int hrs,int mins,char m[])
{
if ( m==" " )
cout<< "The time in 24hr notation is:" <<hrs<<":"<<mins<<" <<"<<m<<endl;
else
cout<< "The time in 12 hr notation is:" <<hrs<<":"<<mins<<" "<<m<<endl;
}
void input(int c,char m[])
{
if ( c==1 )
{ cout<< "Enter the number hours ";
cin >> hrs;
cout<< "Enter the number minutes ";
cin >> mins;
m=" "; }
else if ( c==2)
{ cout<< "Enter the number hours ";
cin >> hrs ;
cout<< "Enter the number minutes ";
cin >> mins;
cout<< "Enter AM/ PM ";
cin >> m; }