diff --git a/HW8a.cpp b/HW8a.cpp new file mode 100644 index 0000000000000000000000000000000000000000..5ad1c0ebb1164180c2c54d2531948deab1cd82e9 --- /dev/null +++ b/HW8a.cpp @@ -0,0 +1,14 @@ +#include <iostream> +int main() +{ + using std::cin; + using std::cout; + int i; double x; + x=1; + for( i=1; i<5; i++ ) + x = i+x / 2.0; + cout << "x is" << x; + return 0; +} + + diff --git a/HW8a.out b/HW8a.out new file mode 100755 index 0000000000000000000000000000000000000000..1dd700529491a759fd4f527c993d0b2663024887 Binary files /dev/null and b/HW8a.out differ