Browse Source

Restrict kind range

DricomDragon 5 years ago
parent
commit
5239d0e9a3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      colors/main.cpp

+ 2 - 2
colors/main.cpp

@@ -30,7 +30,7 @@ int main() {
 
 	cout << endl << "Loop combinations" << endl;
 	for (int cat(0) ; cat <= 1 ; cat ++) {
-		for (int kind(3) ; kind <= 8 ; kind ++) {
+		for (int kind(3) ; kind <= 4 ; kind ++) {
 			for (int color(0); color <= 9; color ++) {
 				cout << cat << ';' << kind << color << endl;
 				cout << "\033[" << cat << ';' << kind << color << 'm';
@@ -46,7 +46,7 @@ int main() {
 	cout << endl << "Some text" << endl;
 	resetColor();
 
-	cout << "End." << endl;
+	cout << endl << "End." << endl;
 
 	return 0;
 }