diff options
Diffstat (limited to 'Programming_in_C/Chapter_04.ipynb')
-rw-r--r-- | Programming_in_C/Chapter_04.ipynb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Programming_in_C/Chapter_04.ipynb b/Programming_in_C/Chapter_04.ipynb index f7f7405b..43a3ac6c 100644 --- a/Programming_in_C/Chapter_04.ipynb +++ b/Programming_in_C/Chapter_04.ipynb @@ -27,17 +27,13 @@ "cell_type": "code", "collapsed": false, "input": [ - "#4.1.py\n", - "#Using the Basic Data Types\n", "\n", - "#Variable Declarations\n", "integerVar=100\n", "floatingVar=331.79\n", "doubleVar=8.44e+11\n", "charVar='w'\n", "boolVar=bool(0)\n", "\n", - "#Result\n", "print(\"integerVar={0}\".format(integerVar))\n", "print(\"floatingVar={0}\".format(floatingVar))\n", "print(\"doubleVar={0}\".format(doubleVar))\n", @@ -73,16 +69,12 @@ "cell_type": "code", "collapsed": false, "input": [ - "#4.2.py\n", - "#Using the Arithmetic Operators\n", "\n", - "#Variable declarations\n", "a=100\n", "b=2\n", "c=25\n", "d=4\n", "\n", - "#Calculations/Results\n", "result=a-b #subtraction\n", "print(\"a-b={0}\".format(result)) #result\n", "\n", @@ -126,16 +118,12 @@ "cell_type": "code", "collapsed": false, "input": [ - "#4.3.py\n", - "#More Examples with Arithmetic Operations\n", "\n", - "#Variable Declarations\n", "a=25\n", "b=2\n", "c=25.0\n", "d=2.0\n", "\n", - "#Calculations/Result\n", "print(\"6 + a / 5 * b = {0}\".format(6+a/5*b))\n", "print(\"a / b * b = {0}\".format(a/b*b))\n", "print(\"c / d * d = {0}\".format(c/d*d))\n", @@ -169,16 +157,12 @@ "cell_type": "code", "collapsed": false, "input": [ - "#4.4.py\n", - "#Illustrating the Modulus Operator\n", "\n", - "#Variable Declarations\n", "a=25\n", "b=5\n", "c=10\n", "d=7\n", "\n", - "#Calculations/Result\n", "print(\"a % b = {0}\".format(a%b))\n", "print(\"a % c = {0}\".format(a%c))\n", "print(\"a % d = {0}\".format(a%d))\n", @@ -212,10 +196,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "#4.5.py\n", - "#Converting Between Integers and Floats\n", "\n", - "#Variable Declarations\n", "f1=123.125\n", "f2=1.0\n", "i1=1\n", |