{"id":7750,"date":"2021-11-25T02:29:20","date_gmt":"2021-11-25T02:29:20","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=7750"},"modified":"2021-11-25T02:32:04","modified_gmt":"2021-11-25T02:32:04","slug":"switch-statement","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/switch-statement\/22431.html","title":{"rendered":"Switch Statement"},"content":{"rendered":"<p>good day \ud83d\ude42 we were asked to make a program about &#8220;daily horoscope&#8221;<br \/>\nbut i can&#8217;t run the program&#8230;<br \/>\nbelow is my code for CASE 1 ..<\/p>\n<p>what do you think the problem with my code below..?<br \/>\ni cant find any mistakes.. can you help me please. ..<\/p>\n<p>#include&lt;stdio.h&gt;<br \/>\nmain()<br \/>\n{<br \/>\nint month,date;<br \/>\nclrscr();<br \/>\nprintf(&#8220;ENTER YOUR DATE OF BIRTH:\\n&#8221;);<br \/>\nprintf(&#8220;Month[1-12]:\\n&#8221;);<br \/>\nscanf(&#8220;%d&#8221;,&amp;month;);<br \/>\nprintf(&#8220;Day[1-31]:\\n&#8221;);<br \/>\nscanf(&#8220;%d&#8221;,&amp;date;);<br \/>\nswitch(month)<br \/>\n{<br \/>\ncase 1:<br \/>\nif(date&gt;=1&amp;&amp;date;&lt;=19)<br \/>\n{<br \/>\nprintf( &#8220;\\n YOUR ZODIAC SIGN IS CAPRICORN &#8220;);<br \/>\nprintf( &#8220;\\n Your energy is focused on work today &#8212; maybe a bit too<\/p>\n<p>much so. It&#8217;s a good time to get a lot done, for sure, but try to make<\/p>\n<p>sure that your relationships don&#8217;t suffer as a result.&#8221;);<br \/>\n}<br \/>\nelse if (date&gt;=20&amp;&amp;date;&lt;=31)<br \/>\n{<br \/>\nprintf(&#8220;\\n YOUR ZODIAC SIGN IS AQUARIUS &#8220;);<br \/>\nprintf(&#8220;\\n Your energy is flowing freely today and it&#8217;s easier than ever<\/p>\n<p>for you to focus on personal issues. You don&#8217;t need to close anyone<\/p>\n<p>else off, but you do need to let yourself act without restraint. \u201d);<br \/>\n}<br \/>\nbreak;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":1},"question-category":[55],"question_tags":[],"class_list":["post-7750","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/7750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=7750"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=7750"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=7750"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=7750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}