// This program with "flip a coin" numerous times and report // the number of heads and tails. #include #include using namespace std; const int AMOUNT = 100; int main() { int i; int result; for ( i = 0 ; i < AMOUNT ; i++ ) { result = rand() % 10000; cout << result << endl; } }