Skip to content

Instantly share code, notes, and snippets.

@afzalali15
Created June 30, 2022 06:58
Show Gist options
  • Save afzalali15/c66cd6b61f13db5dc71ed4d9aaf5a102 to your computer and use it in GitHub Desktop.
Save afzalali15/c66cd6b61f13db5dc71ed4d9aaf5a102 to your computer and use it in GitHub Desktop.
void main() {
String operation = "+";
int num1 = 5;
int num2 = 10;
switch(operation)
{
case '+':
int result = num1 + num2;
if(result == 38)
print('This is special number');
else
print('This is normal number');
break;
default:
print('invalid operation');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment