Created
February 7, 2026 12:15
-
-
Save rubywai/7dd029c670fb573c5957578083962fa6 to your computer and use it in GitHub Desktop.
mark auto home work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| //if switch tenary | |
| int mark = -1; | |
| if (mark >= 80) { | |
| print("Excellent"); | |
| } else if (mark >= 60) { | |
| print("Good"); | |
| } else if (mark >= 40) { | |
| print("Pass"); | |
| } else if (mark >= 0) { | |
| print("Failed"); | |
| } else { | |
| print("invalid"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment