{"id":143,"date":"2020-07-01T15:43:06","date_gmt":"2020-07-01T15:43:06","guid":{"rendered":"\/?p=143"},"modified":"2020-07-01T15:43:06","modified_gmt":"2020-07-01T15:43:06","slug":"c-program-to-check-whether-the-number-is-even-or-odd","status":"publish","type":"post","link":"http:\/\/suryaprakash.com.np\/?p=143","title":{"rendered":"C Program to Check Whether the Number is Even or Odd"},"content":{"rendered":"<p><span style=\"color: #000080;\">\/<span style=\"color: #003366;\">\/<span style=\"color: #333399;\">Program to check whether the number is even or odd<\/span><\/span><\/span><br \/>\n<span style=\"color: #993366;\">#include&lt;stdio.h&gt;<\/span><br \/>\n<span style=\"color: #000080;\">void main()<\/span><br \/>\n<span style=\"color: #000080;\">{<\/span><br \/>\n<span style=\"color: #000080;\">int n;<\/span><br \/>\n<span style=\"color: #000080;\">printf(&#8220;enter the value of n\\n&#8221;);<\/span><br \/>\n<span style=\"color: #000080;\">scanf(&#8220;%d&#8221;,&amp;n);<\/span><br \/>\n<span style=\"color: #000080;\">if(n%2)<\/span><br \/>\n<span style=\"color: #000080;\">{<\/span><br \/>\n<span style=\"color: #000080;\">printf(&#8220;%d is odd&#8221;,n);<\/span><\/p>\n<p><span style=\"color: #000080;\">}<\/span><br \/>\n<span style=\"color: #000080;\">else<\/span><br \/>\n<span style=\"color: #000080;\">{<\/span><br \/>\n<span style=\"color: #000080;\">printf(&#8220;%d is even&#8221;,n);<\/span><br \/>\n<span style=\"color: #000080;\">}<\/span><br \/>\n<span style=\"color: #000080;\">}<\/span><\/p>\n<p><strong>OUTPUT<\/strong><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-144\" src=\"\/wp-content\/uploads\/2020\/07\/EvenOdd-300x117.png\" alt=\"\" width=\"300\" height=\"117\" srcset=\"\/wp-content\/uploads\/2020\/07\/EvenOdd-300x117.png 300w, \/wp-content\/uploads\/2020\/07\/EvenOdd.png 452w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/Program to check whether the number is even or odd #include&lt;stdio.h&gt; void main() { int n; printf(&#8220;enter the value of &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/suryaprakash.com.np\/index.php?rest_route=\/wp\/v2\/posts\/143"}],"collection":[{"href":"http:\/\/suryaprakash.com.np\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/suryaprakash.com.np\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/suryaprakash.com.np\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/suryaprakash.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=143"}],"version-history":[{"count":1,"href":"http:\/\/suryaprakash.com.np\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":145,"href":"http:\/\/suryaprakash.com.np\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions\/145"}],"wp:attachment":[{"href":"http:\/\/suryaprakash.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/suryaprakash.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/suryaprakash.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}