If Statements

Lesson 18
Author : Afrixi
Last Updated : November, 2017


C - Programming Language
This course covers the basics of programming in C. Work your way through the videos/articles and I'll teach you everything you need to know to start your programming journey!
<ul>
  <li>Is a false Boolean expression</li>
</ul>
<ul>
  <li>Is a true Boolean expression</li>
</ul>

if(isStudent != 0 && isSmart != 0){ printf("You are a student\n"); } else if(isStudent != 0 && isSmart == 0){ printf("You are not a smart student\n"); } else { printf("You are not a student and not smart\n"); }

// >, <, >=, <=, !=, == if(1 > 3){ printf("number comparison was true\n"); }

if('a' > 'b'){ printf("character comparison was true\n"); }