Hey everyone! I was trying to figure out how to use the if or loop..so this is what I typed, please help me with the red syntax #include #include int main(void) { printf(Give me a height between 1 and 23\n); int height = GetInt(); printf(You picked %d \n, height); if (height < 0 || height == 0) { printf(Try again! Please pick a number between 1 and 23\n); } else { printf(You picked the right number); } }
Posted on: Fri, 01 Aug 2014 20:08:15 +0000
Trending Topics
Recently Viewed Topics
© 2015