fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int choice;
  6. printf("1 for porotta \n 2 for biriyani \n 3 for fried rice \n 4 for mandhi \n enter your choice");
  7. scanf("%d",&choice);
  8. switch(choice){
  9. case1:
  10. printf("you have selected porotta");
  11. break;
  12. case2:
  13. printf("you have selected biriyani");
  14. break;
  15. case3:
  16. printf("you have selected fried rice");
  17. break;
  18. case4:
  19. printf("you have selected mandhi");
  20. break;
  21. default:
  22. printf("foooooll");
  23. }
  24.  
  25.  
  26. return 0;
  27. }
  28.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
1 for porotta 
 2 for biriyani 
 3 for fried rice 
 4 for mandhi 
 enter your choicefoooooll