Never mind. That question was solved by myself.
anyhow, when I compile my code, I get an error.
#include <iostream>
#include <windows.h>
using namespace std;
int main(){
for (int number=1; number<=6; number++;){
if (number == 1){
numbersuffix = "st";}
else if (number == 2){
numbersuffix = "nd";}
else if (number == 3){
numbersuffix = "rd";}
else {
numbersuffix = "th";}
cout << "The suffixes are " << numbersuffix << endl;}
system("pause");
return 0;}
What is wrong with this code? Why does DevC++ give an error?