hi there
well my question is as follow;
i want to set a loop for my program so it only print a value at a certain time
lets say every second i need to print 30

the loop that i know how to make it is as follow

int num = 0;

while (!kbhit())
{

printf("time = %0.2f ",Time);
for (int i = 0; i<=10;i++)
{
printf("\n %d \n",num);
}
}

where the time is already been set by using
so can anyone help me so at each second i dispplay a number

thnx

Comments

btopro’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

don't post here anymore please this is not the place.