{"id":115,"date":"2016-08-14T14:45:00","date_gmt":"2016-08-14T14:45:00","guid":{"rendered":"http:\/\/localhost\/thecoder\/blog\/?p=115"},"modified":"2019-09-04T00:45:51","modified_gmt":"2019-09-03T19:00:51","slug":"write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming","status":"publish","type":"post","link":"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/","title":{"rendered":"Write a Program to find out the perimeter of Triangle, Rectangle and Circle using Switch case in C Programming"},"content":{"rendered":"<p>Hello,<\/p>\n<p>The program is long as other program!<\/p>\n<p>If you guys are not understanding the Code feel free to comment below!<\/p>\n<p>First Please check the code.<\/p>\n<pre class=\"lang:c decode:true \">#include&lt;stdio.h&gt;\r\nvoid main(){\r\nint option;\r\nfloat r,l,b,a,c,res;\r\nprintf(\"Please Select any one option \\n 1 For Perimeter of Circle \\n 2 for Perimeter of Rectangle \\n 3 for Perimeter of Triangle \\n Your Choice: \");\r\nscanf(\"%d\",&amp;option);\r\nswitch(option){\r\ncase 1:\r\n    printf(\"Please Type the Value of Radius: \");\r\n    scanf(\"%f\",&amp;r);\r\n    res=2*22\/7*r;\r\n    printf(\"The Perimeter of circle is: %f\",res);\r\n    break;\r\n    case 2:\r\n    printf(\"Please Type the Value of L: \");\r\n    scanf(\"%f\",&amp;l);\r\n     printf(\"Please Type the Value of B: \");\r\n    scanf(\"%f\",&amp;b);\r\n    res=2*l+b;\r\n    printf(\"The Perimeter of Rectangle is: %f\",res);\r\n    break;\r\n\r\ncase 3:\r\n    printf(\"Please Type the Value of A: \");\r\n    scanf(\"%f\",&amp;a);\r\n     printf(\"Please Type the Value of B: \");\r\n    scanf(\"%f\",&amp;b);\r\n     printf(\"Please Type the Value of C: \");\r\n    scanf(\"%f\",&amp;c);\r\n    res=a+b+c;\r\n    printf(\"The Perimeter of Triangle is: %f\",res);\r\n    break;\r\ndefault:\r\n    printf(\"Press Any Key to exit\");\r\n}\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Understood ?<\/p>\n<p>If not Comment down i will try my best to reply you as soon as i can!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello, The program is long as other program! If you guys are not understanding the Code feel free to comment below! First Please check the code. #include&lt;stdio.h&gt; void main(){ int option; float r,l,b,a,c,res; printf(&#8220;Please Select any one option \\n 1 For Perimeter of Circle \\n 2 for Perimeter of Rectangle \\n 3 for Perimeter of <a class=\"read-more\" href=\"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-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-115","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 find out the perimeter of Triangle, Rectangle and Circle using Switch case 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-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-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 find out the perimeter of Triangle, Rectangle and Circle using Switch case in C Programming - Pradip Adhikari\" \/>\n<meta property=\"og:description\" content=\"Hello, The program is long as other program! If you guys are not understanding the Code feel free to comment below! First Please check the code. #include&lt;stdio.h&gt; void main(){ int option; float r,l,b,a,c,res; printf(&quot;Please Select any one option n 1 For Perimeter of Circle n 2 for Perimeter of Rectangle n 3 for Perimeter of &hellip;&nbsp;&rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-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:45:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-03T19:00:51+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-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/\"},\"author\":{\"name\":\"Pradip Adhikari\",\"@id\":\"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/f7a455883d474da73ee7730e4cc8a5d7\"},\"headline\":\"Write a Program to find out the perimeter of Triangle, Rectangle and Circle using Switch case in C Programming\",\"datePublished\":\"2016-08-14T14:45:00+00:00\",\"dateModified\":\"2019-09-03T19:00:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/\"},\"wordCount\":64,\"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-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/\",\"url\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/\",\"name\":\"Write a Program to find out the perimeter of Triangle, Rectangle and Circle using Switch case in C Programming - Pradip Adhikari\",\"isPartOf\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/#website\"},\"datePublished\":\"2016-08-14T14:45:00+00:00\",\"dateModified\":\"2019-09-03T19:00:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-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 find out the perimeter of Triangle, Rectangle and Circle using Switch case 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 find out the perimeter of Triangle, Rectangle and Circle using Switch case 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-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/","og_locale":"en_US","og_type":"article","og_title":"Write a Program to find out the perimeter of Triangle, Rectangle and Circle using Switch case in C Programming - Pradip Adhikari","og_description":"Hello, The program is long as other program! If you guys are not understanding the Code feel free to comment below! First Please check the code. #include&lt;stdio.h&gt; void main(){ int option; float r,l,b,a,c,res; printf(\"Please Select any one option n 1 For Perimeter of Circle n 2 for Perimeter of Rectangle n 3 for Perimeter of &hellip;&nbsp;&rarr;","og_url":"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-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:45:00+00:00","article_modified_time":"2019-09-03T19:00:51+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-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/#article","isPartOf":{"@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/"},"author":{"name":"Pradip Adhikari","@id":"https:\/\/coderpradip.com\/blog\/#\/schema\/person\/f7a455883d474da73ee7730e4cc8a5d7"},"headline":"Write a Program to find out the perimeter of Triangle, Rectangle and Circle using Switch case in C Programming","datePublished":"2016-08-14T14:45:00+00:00","dateModified":"2019-09-03T19:00:51+00:00","mainEntityOfPage":{"@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/"},"wordCount":64,"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-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/","url":"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/","name":"Write a Program to find out the perimeter of Triangle, Rectangle and Circle using Switch case in C Programming - Pradip Adhikari","isPartOf":{"@id":"https:\/\/coderpradip.com\/blog\/#website"},"datePublished":"2016-08-14T14:45:00+00:00","dateModified":"2019-09-03T19:00:51+00:00","breadcrumb":{"@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-in-c-programming\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/coderpradip.com\/blog\/write-a-program-to-find-out-the-perimeter-of-triangle-rectangle-and-circle-using-switch-case-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 find out the perimeter of Triangle, Rectangle and Circle using Switch case 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\/115","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=115"}],"version-history":[{"count":0,"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"wp:attachment":[{"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coderpradip.com\/blog\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}