Skip to content

Instantly share code, notes, and snippets.

@rubywai
Created February 7, 2026 12:15
Show Gist options
  • Select an option

  • Save rubywai/7dd029c670fb573c5957578083962fa6 to your computer and use it in GitHub Desktop.

Select an option

Save rubywai/7dd029c670fb573c5957578083962fa6 to your computer and use it in GitHub Desktop.
mark auto home work
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