Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int score;
- scanf("%d", &score);
- /*
- if如何判斷條件:
- (O) 1, 2, 8, 100, -8, -100 ..... NOT 0
- (X) 0
- 運算 score >= 60:
- score = 59: (score >= 60) => 0
- score = 62: (score >= 60) => 1
- */
- if( score >= 60 ){
- printf("PASS!");
- }
- else{
- printf("NOT PASS!");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement