{"id":97,"date":"2016-08-14T14:32:00","date_gmt":"2016-08-14T14:32:00","guid":{"rendered":"http:\/\/localhost\/thecoder\/blog\/?p=97"},"modified":"2019-09-04T07:15:55","modified_gmt":"2019-09-04T01:30:55","slug":"write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming","status":"publish","type":"post","link":"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/","title":{"rendered":"Write a program to display the order menu and let the user choose any option in C Programming"},"content":{"rendered":"<p>Before you go you need to be familiar with Switch Case Statement.<\/p>\n<p>Anyway let&#8217;s check the code<\/p>\n<pre class=\"lang:c decode:true \">\/\/WAP TO Display the menu and let the user choose their choice\r\n#include&lt;stdio.h&gt;\r\nvoid main(){\r\nint order;\r\nprintf(\"Please choose what you want \\n 1 for Veg MoMo \\n 2 for Buff MoMo \\n 3 for Chaumin \\n 4 for Aalu Puri \\n 5 for exit \\n Order: \");\r\nscanf(\"%d\",&amp;order);\r\nswitch(order){\r\ncase 1:\r\nprintf(\"Your veg MoMo will be delivered soon\");\r\nbreak;\r\ncase 2:\r\n    printf(\"Your Buff MoMo will be delevered soon\");\r\n    break;\r\ncase 3:\r\n     printf(\"Your Chaumin will be delevered soon\");\r\n     break;\r\ncase 4:\r\n     printf(\"Your Aalu Puri will be delevered soon\");\r\n     break;\r\ndefault:\r\n    printf(\"Thank You For Visiting\");\r\n}\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before you go you need to be familiar with Switch Case Statement. Anyway let&#8217;s check the code \/\/WAP TO Display the menu and let the user choose their choice #include&lt;stdio.h&gt; void main(){ int order; printf(&#8220;Please choose what you want \\n 1 for Veg MoMo \\n 2 for Buff MoMo \\n 3 for Chaumin \\n 4 <a class=\"read-more\" href=\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-c-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Write a program to display the order menu and let the user choose any option in C Programming - Pradip Adhikari<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Write a program to display the order menu and let the user choose any option in C Programming - Pradip Adhikari\" \/>\n<meta property=\"og:description\" content=\"Before you go you need to be familiar with Switch Case Statement. Anyway let\u2019s check the code Happy Reading Please help me by Subscribing, Liking and Following me Subscribe Follow @coderpradipLeave a Comment Comments\" \/>\n<meta property=\"og:url\" content=\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/\" \/>\n<meta property=\"og:site_name\" content=\"Pradip Adhikari\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/notpradip\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/notpradip\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-14T14:32:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-04T01:30:55+00:00\" \/>\n<meta name=\"author\" content=\"Pradip Adhikari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/notpradip\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pradip Adhikari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/\"},\"author\":{\"name\":\"Pradip Adhikari\",\"@id\":\"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/f7a455883d474da73ee7730e4cc8a5d7\"},\"headline\":\"Write a program to display the order menu and let the user choose any option in C Programming\",\"datePublished\":\"2016-08-14T14:32:00+00:00\",\"dateModified\":\"2019-09-04T01:30:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/\"},\"wordCount\":36,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/f7a455883d474da73ee7730e4cc8a5d7\"},\"articleSection\":[\"C Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/\",\"url\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/\",\"name\":\"Write a program to display the order menu and let the user choose any option in C Programming - Pradip Adhikari\",\"isPartOf\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/#website\"},\"datePublished\":\"2016-08-14T14:32:00+00:00\",\"dateModified\":\"2019-09-04T01:30:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/coderpradip.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Programming\",\"item\":\"https:\/\/coderpradip.com\/blog\/category\/programming\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"C Programming\",\"item\":\"https:\/\/coderpradip.com\/blog\/category\/programming\/c-programming\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Write a program to display the order menu and let the user choose any option in C Programming\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/coderpradip.com\/blog\/#website\",\"url\":\"https:\/\/coderpradip.com\/blog\/\",\"name\":\"Pradip Adhikari\",\"description\":\"Blog\",\"publisher\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/f7a455883d474da73ee7730e4cc8a5d7\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/coderpradip.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/f7a455883d474da73ee7730e4cc8a5d7\",\"name\":\"Pradip Adhikari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/coderpradip.com\/blog\/wp-content\/uploads\/2023\/01\/Pradip-Adhikari.png\",\"contentUrl\":\"https:\/\/coderpradip.com\/blog\/wp-content\/uploads\/2023\/01\/Pradip-Adhikari.png\",\"width\":954,\"height\":1069,\"caption\":\"Pradip Adhikari\"},\"logo\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Tech Geek and Author\",\"sameAs\":[\"http:\/\/coderpradip.com\/\",\"https:\/\/facebook.com\/notpradip\/\",\"https:\/\/instagram.com\/notpradip\/\",\"https:\/\/linkedin.com\/in\/notpradip\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/notpradip\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Write a program to display the order menu and let the user choose any option in C Programming - Pradip Adhikari","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/","og_locale":"en_US","og_type":"article","og_title":"Write a program to display the order menu and let the user choose any option in C Programming - Pradip Adhikari","og_description":"Before you go you need to be familiar with Switch Case Statement. Anyway let\u2019s check the code Happy Reading Please help me by Subscribing, Liking and Following me Subscribe Follow @coderpradipLeave a Comment Comments","og_url":"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/","og_site_name":"Pradip Adhikari","article_publisher":"https:\/\/facebook.com\/notpradip\/","article_author":"https:\/\/facebook.com\/notpradip\/","article_published_time":"2016-08-14T14:32:00+00:00","article_modified_time":"2019-09-04T01:30:55+00:00","author":"Pradip Adhikari","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/notpradip\/","twitter_misc":{"Written by":"Pradip Adhikari","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/#article","isPartOf":{"@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/"},"author":{"name":"Pradip Adhikari","@id":"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/f7a455883d474da73ee7730e4cc8a5d7"},"headline":"Write a program to display the order menu and let the user choose any option in C Programming","datePublished":"2016-08-14T14:32:00+00:00","dateModified":"2019-09-04T01:30:55+00:00","mainEntityOfPage":{"@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/"},"wordCount":36,"commentCount":0,"publisher":{"@id":"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/f7a455883d474da73ee7730e4cc8a5d7"},"articleSection":["C Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/","url":"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/","name":"Write a program to display the order menu and let the user choose any option in C Programming - Pradip Adhikari","isPartOf":{"@id":"https:\/\/coderpradip.com\/blog\/#website"},"datePublished":"2016-08-14T14:32:00+00:00","dateModified":"2019-09-04T01:30:55+00:00","breadcrumb":{"@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-display-the-order-menu-and-let-the-user-choose-any-option-in-c-programming\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/coderpradip.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Programming","item":"https:\/\/coderpradip.com\/blog\/category\/programming\/"},{"@type":"ListItem","position":3,"name":"C Programming","item":"https:\/\/coderpradip.com\/blog\/category\/programming\/c-programming\/"},{"@type":"ListItem","position":4,"name":"Write a program to display the order menu and let the user choose any option in C Programming"}]},{"@type":"WebSite","@id":"https:\/\/coderpradip.com\/blog\/#website","url":"https:\/\/coderpradip.com\/blog\/","name":"Pradip Adhikari","description":"Blog","publisher":{"@id":"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/f7a455883d474da73ee7730e4cc8a5d7"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/coderpradip.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/f7a455883d474da73ee7730e4cc8a5d7","name":"Pradip Adhikari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/coderpradip.com\/blog\/wp-content\/uploads\/2023\/01\/Pradip-Adhikari.png","contentUrl":"https:\/\/coderpradip.com\/blog\/wp-content\/uploads\/2023\/01\/Pradip-Adhikari.png","width":954,"height":1069,"caption":"Pradip Adhikari"},"logo":{"@id":"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/image\/"},"description":"Tech Geek and Author","sameAs":["http:\/\/coderpradip.com\/","https:\/\/facebook.com\/notpradip\/","https:\/\/instagram.com\/notpradip\/","https:\/\/linkedin.com\/in\/notpradip\/","https:\/\/x.com\/https:\/\/twitter.com\/notpradip\/"]}]}},"_links":{"self":[{"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":0,"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"wp:attachment":[{"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}