Avatar of lskair
lskairFlag for United States of America asked on

Re-run program instead of exit

Hi there.  I would like to give the option to re-run the my program once it converts one of the choices.  Currently I have the program exiting after finding one currency conversion by:

  {
      printf("End of program");
      printf("\n");
      printf("Press Enter to close program.");
      }
      getchar ();
      return 0;
 }

I'm wondering how I can keep it open and have it give the option to "select another choice" or "start over".  I can provide the entire program if you need.  Thanks.

Becca
CProgramming

Avatar of undefined
Last Comment
lskair

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
evilrix

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
lskair

Just what I was looking for.  I just found it in my book as well, but your comment confirmed it, so I'll give you the points.  Thanks again.

Becca
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck