#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <windows.h>
void setcolor(unsigned short color)
HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hCon,color);
}
main()
{
int bil=1;
clrscr();
while(bil<=10)
{setcolor(6);
cout<<bil<<"|=*=|";
++bil;
}
getch();
}
Tidak ada komentar:
Posting Komentar