#include <stdio.h>
#include <windows.h>
void main()
{
	int i;

	for(i=0; i<21; i++)
	{
		if(i == 5)
		{
			system("cls");
			printf("\n\n\n\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***                                 ***\n");
			printf("\t\t   ***           WELCOME TO            ***\n");
			printf("\t\t   ***    CLASS ATTENDANCE SYSTEM      ***\n");
			printf("\t\t   ***                                 ***\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***************************************\n");
			printf("\n\n");
		}
		if(i == 10)
		{
			system("cls");
			printf("\n\n\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***                                 ***\n");
			printf("\t\t   ***           WELCOME TO            ***\n");
			printf("\t\t   ***    CLASS ATTENDANCE SYSTEM      ***\n");
			printf("\t\t   ***                                 ***\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***************************************\n");
			printf("\n\n");
		}
		if(i == 15)
		{
			system("cls");
			printf("\n\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***                                 ***\n");
			printf("\t\t   ***           WELCOME TO            ***\n");
			printf("\t\t   ***    CLASS ATTENDANCE SYSTEM      ***\n");
			printf("\t\t   ***                                 ***\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***************************************\n");
			printf("\n\n");
		}
		if(i == 20)
		{
			system("cls");
			printf("\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***                                 ***\n");
			printf("\t\t   ***           WELCOME TO            ***\n");
			printf("\t\t   ***    CLASS ATTENDANCE SYSTEM      ***\n");
			printf("\t\t   ***                                 ***\n");
			printf("\t\t   ***************************************\n");
			printf("\t\t   ***************************************\n");
			printf("\n\n");
		}
	}
}

here is my code,
this code is going to move the things upward by minus "\n"
i would to ask is that anything that can slow the movement of the move?
i use foor loop, it move upwards too fast already..
Eg: like 1 sec move up once.

I'm not quite sure what it is that you are exactly asking, but you may get some ideas from the following. Since you already include <windows.h>, you can use the Sleep() Windows API.

#include <stdio.h>
#include <windows.h>

void print_welcome(void)
{
  printf
  (
    "\n\n\n\n"
    "\t\t   ***************************************\n"
    "\t\t   ***************************************\n"
    "\t\t   ***                                 ***\n"
    "\t\t   ***           WELCOME TO            ***\n"
    "\t\t   ***    CLASS ATTENDANCE SYSTEM      ***\n"
    "\t\t   ***                                 ***\n"
    "\t\t   ***************************************\n"
    "\t\t   ***************************************\n"
    "\n\n"
  );
}

/* Note: It is int main(), NOT void main()! */ 
int main(void)
{
  int i;

  for(i=0; i<5; i++)
  {
    system("cls");
    print_welcome();

    /* Wait for a second */
    Sleep(1000);
  }

  return 0;
}

owh..
i got it right already..
there is what i want.. ~
hold the movement within a second.
thanks dude.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.