Skip to content

Instantly share code, notes, and snippets.

@eduardodx
Created June 5, 2012 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardodx/2874836 to your computer and use it in GitHub Desktop.
Save eduardodx/2874836 to your computer and use it in GitHub Desktop.
mat
#include <stdio.h>
int main() {
char opcao;
scanf("%c", &opcao);
switch(opcao) {
case 'a':
// seu codigo
break;
case 'b':
// seu codigo
break;
case 'c':
// seu codigo
break;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment