Loading Program


This program prints the '*' symbol on console screen on given x and y position using gotoxy method in C Programming. This program works as a loading program.

#include<stdio.h>
#include<conio.h>
void main()
{
int i,c,j=1;
clrscr();
for(i=0;i<5;i++)
{
for(c=70;c<80;c++)
  {
    gotoxy(c, 12);
    delay(500);
    textcolor(j);
    cprintf("*");
    c++;
    j=j+2;
  }
}
getch();
}

Output :