help.. my program closes everytime i run the combination calculator..

Closes? I'd more expect it to hang since the first loop of the combination calculator is infinite. Though it's quite likely the undefined behavior of overflowing your data types causes a crash. Can you describe what happens when the program "closes"?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.