From 28b3bdae29dc1c32e971ee2058eb03543f44f5eb Mon Sep 17 00:00:00 2001 From: Jerin Varghese <32333669+vjerin@users.noreply.github.com> Date: Thu, 25 Oct 2018 13:05:07 +0530 Subject: [PATCH] Update Time-conv C++ --- Time-conv C++ | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Time-conv C++ b/Time-conv C++ index 2d7d1b3..b9e5c59 100644 --- a/Time-conv C++ +++ b/Time-conv C++ @@ -2,6 +2,9 @@ #include using namespace std; int main() +{ +char ch; +do { string str; cout<<"Enter time in hh:mm:ssAM/PM"; @@ -41,6 +44,9 @@ int main() for (int i=2; i <= 7; i++) cout << str[i]; } - } + } + cout<<"Do you want to continue?(y/n)"; + cin>>ch; + }while(ch=='y'); return 0; }