Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. intBool = (210 >= 7 * 30);
  2.  
  3. // if ( condition is true )
  4. // {
  5. // Run this code
  6. // }
  7. // else
  8. // {
  9. // Run this code
  10. // }
  11. //
  12. // Brackets unnecessary if block consists of 1 statement
  13. // Always including them improves readability and prevents bugs.
  14.  
  15. if (1)
  16. {
  17. printf("1 is true.\n\n");
  18. }
  19.  
  20. if (0)
  21. {
  22. printf("0 is true.\n\n");
  23. }
  24. else
  25. {
  26. printf("0 is false.\n\n");
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement