Advertisement
Maplewing

9/5 C: if-else

Sep 5th, 2015
100
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.  
  3. int main(){
  4.     int score;
  5.     scanf("%d", &score);
  6.    
  7.     /*
  8.         if:
  9.             (O) 1, 8, -8 .... NOT 0
  10.             (X) 0
  11.     */
  12.     if( score >= 60 ){
  13.         printf("PASS!");
  14.     }
  15.     else {
  16.         printf("NOT PASS!");
  17.     }
  18.    
  19.    
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement