color fun
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
//dazzle it //by me 20.10.2014
#include <iostream>
using namespace std;
int main(){
cout << "dazzle it";
for (int i=0; i<=1000; i++)
{
if(i%2==0) system("color 10");
else if (i%3==0) system("color 23");
else if (i%5==0) system("color 4F");
else if (i%7==0) system("color 6F");
else if (i%11==0) system("color 89");
else if (i%13==0) system("color AB");
else if (i%17==0) system("color CD");
else if (i%19==0) system("color EF");
}
return 0;
}
|
if you know more interesting color program - post it!
Topic archived. No new replies allowed.