Advertisement
Dido09

If - else syntax in C

Mar 13th, 2022
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int score;
  5. scanf("%d", &score);
  6.  
  7. if (score > 75)
  8. printf("You passed.\n");
  9. else
  10. printf("You failed.\n");
  11.  
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement