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 ;