do you know how to get the output as when i input 1000
Enter a number of seconds:
There are 16.667 minutes in 1000.000 seconds.
my output would say
Enter a number of seconds:
There are...
Type: Posts; User: typeqwerty
do you know how to get the output as when i input 1000
Enter a number of seconds:
There are 16.667 minutes in 1000.000 seconds.
my output would say
Enter a number of seconds:
There are...
but when i run it on a site it where it automatically compile it would say i failed.
i need it to look like this. for example when i input 10000 it should say this as output. E
Enter a number of seconds:
There are 166.667 minutes in 10000.000 seconds.
There are 2.778 hours in...
#include <iostream>
#include <iomanip>
#include<string>
#include<cmath>
using namespace std;
int main()
{
double seconds;
double minutes = seconds /60;
15000/60 = 250 then divided it by 60.
i didn't learn about the modulus yet. the teacher wants me to use the if statement..
is that supposed to be a trick question? 4hours?
should i use double or int or?
Here's what i'm supposed to do.
Write a program that asks the user to enter a number of seconds.
There are 60 seconds in a minute. If the number of seconds entered by the user is greater than...