how would I loop my program?

Hi everyone, my question is, how to I loop my program instead of having it terminated after one session? I want to terminate the program when the user states/types in -1 , this is my program:

#include <iostream>
using namespace std

int main()
{
std::cout << " Welcome to the Inch Converter! \nEnter the original inches: ";
int in;
std::cin >> in;
int ft = std::divides<int>()(in, 12);
in = std::modulus<int>()(in, 12);
std::cout << " Equivalent feet/inches: " << ft << " feet, " << in << " inches. \n" << "Thank you, good bye!\n ;

system("pause");
return 0;
}

any help would be greatly appreciated :)
You can do that by using loops.
See here for more information:
http://www.cplusplus.com/doc/tutorial/control/
Topic archived. No new replies allowed.