fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int choice;
  5. printf("1 for biriyani\n2 for dosha\n3 for porotta\n4 for manthi\n please enter your choice:");
  6. scanf("%d",&choice);
  7. switch(choice){
  8. case 1:
  9. printf("you have selected briyani");
  10. break;
  11. case 2:
  12. printf("you have selected dosha");
  13. break;
  14. case 3:
  15. printf("you have selected porotta");
  16. break;
  17. case 4:
  18. printf("you have selected manthi");
  19. break;
  20.  
  21.  
  22. default:
  23. printf("wrong selection");
  24. }
  25. return 0;
  26. }
  27.  
Success #stdin #stdout 0.01s 5288KB
stdin
2
stdout
1 for biriyani
2 for dosha
3 for porotta
4 for manthi
 please enter your choice:you have selected dosha