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; }