{"id":45,"date":"2021-10-31T14:41:00","date_gmt":"2021-10-31T14:41:00","guid":{"rendered":"https:\/\/rijankc.com.np\/2021\/10\/31\/wap-to-calculate-the-area-of-a-circle\/"},"modified":"2024-11-04T09:33:56","modified_gmt":"2024-11-04T03:48:56","slug":"wap-to-calculate-the-area-of-a-circle","status":"publish","type":"post","link":"https:\/\/rijankc.com.np\/?p=45","title":{"rendered":"WAP to Calculate the Area of a Circle"},"content":{"rendered":"<p><b>Question:<\/b><br \/>\n<span style=\"font-family: 'Times New Roman', 'serif'; text-indent: -0.25in;\"><b>Write a program that calculates the area of a circle. The formula for the area of a circle is pi times the radius squared.<\/b><\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0in .25in; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><b>Ans:<\/b><\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0in .25in; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>CLS<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0in .25in; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>CONST PI=3.141592654<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0in .25in; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>LET R = 8<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0in .25in; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>Area = PI*(R^2)<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0in .25in; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>PRINT &#8220;The area is :::&#8221; ; Area<\/span><\/p>\n<p style=\"line-height: normal; margin: 0in 0in 0in .25in; text-indent: -0.25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>END<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: Write a program that calculates the area of a circle. The formula for the area of a circle is pi times the radius squared. Ans: \u00a0\u00a0\u00a0\u00a0\u00a0 CLS \u00a0\u00a0\u00a0\u00a0\u00a0 CONST PI=3.141592654 \u00a0\u00a0\u00a0\u00a0\u00a0 LET R = 8 \u00a0\u00a0\u00a0\u00a0\u00a0 Area = PI*(R^2) \u00a0\u00a0\u00a0\u00a0\u00a0 PRINT &#8220;The area is :::&#8221; ; Area \u00a0\u00a0\u00a0\u00a0\u00a0 END<\/p>\n","protected":false},"author":1,"featured_media":737,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[115,114],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","category-wap"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45"}],"version-history":[{"count":1,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":421,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions\/421"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/media\/737"}],"wp:attachment":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}