{"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[pastacode lang=\u201dc\u201d manual=\u201d%23include%20%3Cgraphics.h%3E%0A%23include%20%3Cdos.h%3E%0A%23include%20%3Cconio.h%3E%0A%20%0Aint%20main()%0A%7B%0A%20%20%20int%20gd%20%3D%20DETECT%2C%20gm%2C%20i%3B%0A%20%20%20char%20a%5B5%5D%3B%0A%20%0A%20%20%20initgraph(%20%26gd%2C%20%26gm%2C%20%22C%3A%5C%5CTC%5C%5CBGI%22)%3B%0A%20%0A%20%20%20settextjustify(%20CENTER_TEXT%2C%20CENTER_TEXT%20)%3B%0A%20%20%20settextstyle(DEFAULT_FONT%2CHORIZ_DIR%2C3)%3B%0A%20%20%20setcolor(RED)%3B%0A%20%0A%20%20%20for%20(i%20%3D%2030%3B%20i%20%3E%3D0%3B%20i\u2013)%0A%20%20%20%7B%0A%20%20%20%20%20%20sprintf(a%2C%22%25d%22%2Ci)%3B%0A%20%20%20%20%20%20outtextxy(getmaxx()%2F2%2C%20getmaxy()%2F2%2C%20a)%3B%0A%20%20%20%20%20%20delay(1000)%3B%0A%20%0A%20%20%20%20%20%20if%20(%20i%20%3D%3D%200%20)%0A%20%20%20%20%20%20%20%20%20break%3B%0A%20%20%20%20%20%20cleardevice()%3B%0A%20%20%20%7D%0A%20%0A%20%20%20getch()%3B%0A%20%20%20closegraph()%3B%0A%20%20%20return%200%3B%0A%7D\u201d message=\u201d\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n[ad type=\u201dbanner\u201d]\n<p>\u00a0<\/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}]}}