You are here:

C/Flash digits

Advertisement


Question
Write  a program to display count values from 0 to 100 and flashes each digit for one second. Reset the counter after it reaches to 100. The procedure is to repeated. Use for loop.

Answer
hi Arshdeep

Here is your program

#include<stdio.h>
#include<dos.h>

void main()
{
int i;
for( ; ; )
{
for(i=0;i<=100;i++)
{
clrscr();
printf("%d",i);
delay(1000);
}
}
}

In case of any doubt please feel free to get back to me.

regards
Joydeep Bhattacharya
http://www.scodz.com

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Joydeep Bhattacharya

Expertise

Ability to solve C and Data Structure problems and puzzles with simple and easy to understand logic.

Experience

C, C++, Java, Data Structure, PHP, Web Designing

Organizations
http://www.scodz.com Designation: webmaster

Publications
http://www.scodz.com

Education/Credentials
Master of Computer Applications

Past/Present Clients
http://analysingc.50webs.com http://www.funforu.com

©2012 About.com, a part of The New York Times Company. All rights reserved.