#include <iostream>
using namespace std;
int main()
{
//declare variables
int minutes;
int seconds;
int secondsReminder;
cout<<"Please enter the amount of seconds:"<<endl;
cin>>seconds;
cout<<endl;
//calculate convertion
minutes = seconds/60;
secondsReminder= seconds%60;
//display result
cout<<"Your convertion is:"<<minutes<<"minutes"<<secondsReminder<<"seconds"<<endl;
system("pause");
return 0;
}
No comments:
Post a Comment