Advertisement
thenewboston

C Programming Tutorial - 21 - Don't Beat Up Little Kids

Aug 22nd, 2014
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int hoursWorked = 25;
  7.  
  8.     if( (hoursWorked >= 10) && (hoursWorked <= 40) ){
  9.         printf("Nice job hoss");
  10.     }else{
  11.         printf("You're fired");
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement