aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-02-23 17:45:02 -0600
committerRossTheRoss <msattr@gmail.com>2019-02-23 17:45:02 -0600
commit23e9a2fb57101db978312e6f9f2092ab9ff9b90f (patch)
tree93c83130384f3b697dcb50505117600753fe26cc /ee1301
parentg (diff)
downloadhomework-23e9a2fb57101db978312e6f9f2092ab9ff9b90f.tar
homework-23e9a2fb57101db978312e6f9f2092ab9ff9b90f.tar.gz
homework-23e9a2fb57101db978312e6f9f2092ab9ff9b90f.tar.bz2
homework-23e9a2fb57101db978312e6f9f2092ab9ff9b90f.tar.lz
homework-23e9a2fb57101db978312e6f9f2092ab9ff9b90f.tar.xz
homework-23e9a2fb57101db978312e6f9f2092ab9ff9b90f.tar.zst
homework-23e9a2fb57101db978312e6f9f2092ab9ff9b90f.zip
ah.
Diffstat (limited to '')
-rw-r--r--ee1301/wk3/hw3_directory/strap012_HW3A.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp
index d8db2b1..491628e 100644
--- a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp
+++ b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp
@@ -27,10 +27,11 @@ int spin_the_wheel(int d, int w) {
return 1;
}
int main () {
- int m;
+ long n=1000000;
+ int m=0;
int d= 3;
int w= 9;
- for (long n=1000000; n>0; n--) {
+ for (n; n>0; n--) {
m = spin_the_wheel(d,w);
if (m==1) {
m++;