{"id":24858,"date":"2017-10-15T12:24:07","date_gmt":"2017-10-15T06:54:07","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=24858"},"modified":"2017-10-15T12:24:07","modified_gmt":"2017-10-15T06:54:07","slug":"c-program-countdown","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/c-program-countdown\/","title":{"rendered":"C program countdown"},"content":{"rendered":"<p>This c graphics program performs countdown for 30 seconds.<\/p>\n<h2 id=\"c-program-countdown-code\">C program countdown code<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-c code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-c code-embed-code\">#include &lt;graphics.h&gt;<br\/>#include &lt;dos.h&gt;<br\/>#include &lt;conio.h&gt;<br\/> <br\/>int main()<br\/>{<br\/>   int gd = DETECT, gm, i;<br\/>   char a[5];<br\/> <br\/>   initgraph( &amp;gd, &amp;gm, &quot;C:\\\\TC\\\\BGI&quot;);<br\/> <br\/>   settextjustify( CENTER_TEXT, CENTER_TEXT );<br\/>   settextstyle(DEFAULT_FONT,HORIZ_DIR,3);<br\/>   setcolor(RED);<br\/> <br\/>   for (i = 30; i &gt;=0; i--)<br\/>   {<br\/>      sprintf(a,&quot;%d&quot;,i);<br\/>      outtextxy(getmaxx()\/2, getmaxy()\/2, a);<br\/>      delay(1000);<br\/> <br\/>      if ( i == 0 )<br\/>         break;<br\/>      cleardevice();<br\/>   }<br\/> <br\/>   getch();<br\/>   closegraph();<br\/>   return 0;<br\/>}<\/code><\/pre> <\/div>\n[ad type=&#8221;banner&#8221;]\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C program countdown &#8211; c programming &#8211; This c graphics program performs countdown for 30 seconds.The coding is given below.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82927,1],"tags":[83252,83256,83255,83250,83254,83257,83246,83247,83251,83249,83253,83248],"class_list":["post-24858","post","type-post","status-publish","format-standard","hentry","category-c-programming-2","category-coding","tag-c-timer-interrupt","tag-countdown-clock-free","tag-countdown-software","tag-countdown-timer-c-source-code","tag-countdown-timer-program","tag-event-countdown-timer","tag-how-to-set-timer-in-c-programming","tag-stopwatch-in-c","tag-timer-implementation-in-c-linux","tag-timer-in-c-linux","tag-timer-program-in-c-for-8051","tag-timer-program-in-c-language"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=24858"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/24858\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=24858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=24858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=24858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}