Question #15867

How can I write a C++ program that asks the to user enter the time in seconds??

Expert's answer

#include <string>
#include <iostream>
using namespace std;



int main()
{
float t;
cout<<"Enter& the time in seconds:& ";
cin>>t;

cout<<"\n\n";
system("PAUSE");
}

LATEST TUTORIALS
APPROVED BY CLIENTS