Created
August 4, 2017 01:25
-
-
Save tvl83/cc73a7ab72feacbda3db10d4fd9f7c77 to your computer and use it in GitHub Desktop.
purely aesthetic but this is what i mean about the formatting of the case statement.
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
switch(name){ | |
case '/': | |
result = (float)x / (float)y; | |
printf("&.3f\n"); | |
break; | |
case '*': | |
result = (float)x * (float)y; | |
printf("&.3f\n"); | |
break; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment