Kelvin
4
Q:

if statement in c

#include <studio.h>
int main()
{
  if (logic goes here)
  {
    CODE
  }
  else if (logic)
  {
    CODE
  }
  else{
    CODE
  }
  return 0
}
5
if (condition)
  action_1;     // condition is satisfied / TRUE
else
  action_2;		// condition is not satisfied / FALSE
3

New to Communities?

Join the community