can somebody in planet earth help me!!! pls... a c++ program that converts minutes to seconds and seconds to minutes... thank you so much!!!
A c++ program that converts seconds to minutes and vice versa.. Pls...?
void main
{
int minutes, seconds
cout%26lt;%26lt; " enter the minutes to convert into sec";
cin%26gt;%26gt;minutes
cout %26lt;%26lt; " So many minutes " %26lt;%26lt;minute*60 %26lt;%26lt; ".\n";
return 0
}
Reply:int seconds = 10000;
int minutes;
int minutes = seconds / 60;
int seconds = second % 60;
cout %26lt;%26lt; minutes %26lt;%26lt; ":" seconds %26lt;%26lt; " minutes";
seconds = seconds + (minutes * 60);
count %26lt;%26lt; seconds %26lt;%26lt; "seconds ";
Reply:Based on your last two questions, perhaps you should think of another career?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment