I think your main problem is that you are asking the user for input outside of the loop, therefore the user will only get asked once.
Aside from that, you do not need break in if/else/else if blocks.
Finally, your return at the end of main should say "return 0" and not just "return."
Hope that helps =)
Edit: I don't know how I missed it but you should take out system ("Pause") from the code too. Its bad practice and make the user have to press too many keys to get through the program
If you are going to use a do loop, put the while part on the same line as the closing brace - so it doesn't look like a while loop with a null statement.
I prefer not to use do loops unless i have to. They can very often be coded as a while or for loop.
Edit: with my first statement about do loops, it looks like that exact thing has happened to you already:
1 2 3 4 5 6 7
do {
//do loop code here
}
while (num != t);
{
cout << endl;
}
The while is part of the do loop!! But you have put a compound statement after it ( albeit with 1 statement)