very simple question

translate this English to c++
-> a is a integer from 1 to 9
this is a trojan
To firix:
What are you talking about?
for(int a=1;a<=9;a++);?
Like,
If a is between 1 to 9 then this is good
else this is not good. sth like that
1
2
3
4
5
 if (a  >= 1 && a <= 9) {
 // good
} else {
 // bad
}
@h9uest

what you are saying?
Topic archived. No new replies allowed.