diff options
Diffstat (limited to 'ee1301/wk3')
-rw-r--r-- | ee1301/wk3/hw3_directory/strap012_HW3A.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp index 52b3ce4..6a4ec6c 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp @@ -27,11 +27,11 @@ int main () { winCount+=winTest; } if (w==6) { - std::cout << scientific; + std::cout << std::scientific; } std::cout << "w=" << w << ", d=" << d << ": Simulated probability = m/n = " << (winCount / 1000000.0) * 100.0 << "%. " - << "Theoretical probability = " << (d / (pow(d, w))) * 100 << "%." << endl; + << "Theoretical probability = " << (d / (pow(d, w))) * 100 << "%." << std::endl; d+=2; } } |