Calculate Time using Second C++ Program Unknown 22:18 programe Edit Calculate Time using Second Coding: #include<iostream.h> using namespace std; int main() { system("Color 16"); int sec,min=0,hr=0,day=0,newmin,sec1,hr1,hr2; cout<<" Calculate time with seconds"<<endl<<endl<<endl; cout<<" Enter second === "; cin>>sec; sec1=sec%60; min=sec/60; newmin=min%60; hr=min/60; hr2=hr%24; day=hr/24; cout<<endl<<endl; cout<<" Time is "<<day<<":"<<hr2<<":"<<newmin<<":"<<sec1<<endl<<endl<<endl; } Share on Facebook Share on Twitter Share on Google Plus About Unknown This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel. RELATED POSTS
0 comments:
Post a Comment