I wrote a small C++ Programm for this. Any recommendations on what I could do better?
#include ;
#include <stdlib.h>;
using namespace std;
void main()
{
int rn;
rn = rand() % 100;
cout << rn << " " << rn / 4 << " " << rn % 4 << endl; // To Check Numbers
if (rn % 4 == 0)
{
cout << "Player 1" << endl;
}
else if (rn % 4 == 1)
{
cout << "Player 2" << endl;
}
else if (rn % 4 == 2)
{
cout << "Player 3" << endl;
}
else if (rn % 4 == 3)
{
cout << "Player 4" << endl;
}
else
{
cout << "something went terribly wrong" << endl;
}
system("pause");
}