Advertisement

05.21.2008 at 10:24AM PDT, ID: 23421753
[x]
Attachment Details

Re-run program instead of exit

Asked by lskair in C Programming Language, Miscellaneous Programming

Tags: C

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.

BeccaStart Free Trial
 
Loading Advertisement...
 
[+][-]05.21.2008 at 11:10AM PDT, ID: 21617507

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C Programming Language, Miscellaneous Programming
Tags: C
Sign Up Now!
Solution Provided By: evilrix
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.21.2008 at 11:35AM PDT, ID: 21617715

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628