So I'm a beginner at C++. I've been playing around with it, since I wanna learn more and I found this site, so I will be asking some question here and there:)
My current problem is this. I want the program to write all the 3 digit numbers (meaning from 100 to 999), but I want them to be 10 per row. So far I've been able to get them to a 1 per row, which goes like this
Another problem I thought of. If I want the program to display "1" if a 4 digit number, lets say 5665, is symmetrical. How would that look like in c++? I can think of 3 ways (theoretically) that could be done, but I'm not sure how to write it.
for (i=100;i<1000;i++)
{
// stick everything that should go in the for loop between braces
// it's also good habit to to this for if's as well, even if you've
// only got one line under it.
}
edit:
You have also pretty much ignored codewalker's advice.
Another problem I thought of. If I want the program to display "1" for true and 0 for false, if a 4 digit number, lets say 5665, is symmetrical. How would that look like in c++? I can think of 3 ways (theoretically) that could be done, but I'm not sure how to write it.