Created
June 30, 2022 06:58
-
-
Save afzalali15/c66cd6b61f13db5dc71ed4d9aaf5a102 to your computer and use it in GitHub Desktop.
This file contains 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() { | |
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