switch case

18.05.2014 16:06
#include <stdio.h>
#include <conio.h>
main(void)
{ int resp;
printf(" presione: 1->si ; 2 ->no ; 3 ->nose Su respuesta es:");
scanf("%d",resp);
switch(resp){ case 1: printf(" usted ha dicho SI"); break; case 
2: printf(" usted ha dicho NO"); break; case 3: printf(" usted ha dicho NO SE"); default: 
printf("%d Esa opcion no es valida"); } 
getch(); 
}