summaryrefslogtreecommitdiff
path: root/Computer_Programming_Theory_and_Practice_/Chapter2.ipynb
diff options
context:
space:
mode:
authorhardythe12015-04-07 15:58:05 +0530
committerhardythe12015-04-07 15:58:05 +0530
commit92cca121f959c6616e3da431c1e2d23c4fa5e886 (patch)
tree205e68d0ce598ac5caca7de839a2934d746cce86 /Computer_Programming_Theory_and_Practice_/Chapter2.ipynb
parentb14c13fcc6bb6d01c468805d612acb353ec168ac (diff)
downloadPython-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.tar.gz
Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.tar.bz2
Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.zip
added books
Diffstat (limited to 'Computer_Programming_Theory_and_Practice_/Chapter2.ipynb')
-rwxr-xr-xComputer_Programming_Theory_and_Practice_/Chapter2.ipynb41
1 files changed, 41 insertions, 0 deletions
diff --git a/Computer_Programming_Theory_and_Practice_/Chapter2.ipynb b/Computer_Programming_Theory_and_Practice_/Chapter2.ipynb
new file mode 100755
index 00000000..c4bc71ff
--- /dev/null
+++ b/Computer_Programming_Theory_and_Practice_/Chapter2.ipynb
@@ -0,0 +1,41 @@
+{
+ "metadata": {
+ "name": "Chapter2"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": "Chapter 2, Fundamentals of C language"
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 3, Page Number: CP-22"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "# variable declaration\n\na = 5\nb = 7\nc = 2\n\n# calculation \n\ny = a + b / c - a % c + 2 * a\n\n# result \n\nprint \"The result is \",y\n",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": "The result is 17\n"
+ }
+ ],
+ "prompt_number": 1
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file