#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.