How to print out specific word if value is something ?(basically solved)
#10

Quote:
Originally Posted by SAWC™
Quote:
Originally Posted by jameskmonger
Code:
if(INTEGERNAME=30) {
printf("The integer is over 30 and so this is shown.");
printf("The integer is %s", INTEGERNAME);
}
This is wrong:
"=" should be "==" and it will only print if the integer == 30. If it's more it won't do anything.
Sorry, I'm used to java.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)