Write a program that takes an integer minutes and converts it to seconds.
#include<iostream>
using namespace std;
int main ()
{
float hrs, min, sec = 0;
cout << "Enter minutes : ";
cin >> min;
sec = min * 60;
cout << sec << " seconds";
return 0;
}
Comments
Leave a comment