N seconds have passed since the beginning of the day (N-integer). Find the number of complete minutes

N seconds have passed since the beginning of the day (N-integer). Find the number of complete minutes that have passed since the beginning of the last hour. Draw up a flowchart.

#include <iostream>

using namespace std;

int main () {
// setting the Russian language in the console
setlocale (LC_ALL, “Russian”);
int n;
int hours;
int result;
cout << “Enter the number of seconds since the beginning of the day:” << endl;
cin >> n;
// count how many full hours have passed
hours = n / 3600;
// count how many seconds have passed since the last hour
result = n – hours * 3600;
// convert seconds to full minutes
result = result / 60;
cout << “Since the beginning of the last hour has passed” << result << “full minutes” << endl;
return 0;
}



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.