Skip to content

Instantly share code, notes, and snippets.

@axurright
Created October 16, 2024 01:33
Show Gist options
  • Select an option

  • Save axurright/86ee8ed9e1220205bf70ee87875a38f3 to your computer and use it in GitHub Desktop.

Select an option

Save axurright/86ee8ed9e1220205bf70ee87875a38f3 to your computer and use it in GitHub Desktop.
A stupid C# terminal app that will just tell you stuff based on the number you write.
var number = input("Please type a number, any number. ('Till 1M)");
if (number == 0) {
print("Why 0?");
} else if (number <= 10) {
print("Nice number, it's small.");
} else if (number <= 100) {
print("Starting to get somewhat big.");
} else if (number <= 1000) {
print("Going up.");
} else if (number <= 10000) {
print("Higher and higher, to the 10000s and beyond.");
} else if (number <= 100000) {
print("To the 100000s, and beyond!!");
} else if (number <= 1000000) {
print("Wow, quite a big number.");
}
// Just another Gist my dudes to waste time experimenting with C#.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment