like 1 - 14 in an if statement
if(answer=="1-14");
{
blah
}
In c++ is there a math symbol that would be like one number to through another like 1 through 14?
no, if something is between 1 and 14, then it is
if(answer %26lt; 14 %26amp;%26amp; answer %26gt; 1)
if it can be equal to 14 it's
if(answer %26lt;= 14 %26amp;%26amp; answer %26gt;= 1)
Reply:Try this
if(answer%26gt;=1 %26amp;%26amp; answer%26lt;=14)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment