Search This Blog

Friday, 21 August 2020

Combo

 #include<iostream>

using namespace std;

int main()

{

int second,minute,hrs;

cout<<"enter the time in hrs"<<endl;

cin>>hrs;

cout<<"enter the time in minute"<<endl;

cin>>minute;

cout<<"enter the time in second"<<endl;

cin>>second;


if(hrs>=12)

{

cout<<"hrs:munute:second\n"<<hrs<<":"<<minute<<":"<<second <<" PM"<<endl;

}

else

{

cout<<"hrs:munute:second\n"<<hrs<<":"<<minute<<":"<<second<<"  AM"<<endl;

}


return 0;




#include<iostream>

using namespace std;



cout<<"Enter the time in hours"<<endl;

cin>>hrs;

minute=hrs*60;

cout<<"the conversion of hrs into minute is :"<<minute<<endl;

return 0;

}


No comments:

Post a Comment

Search This Blog

Contact Form

Name

Email *

Message *

Popular Posts