{ "metadata": { "name": "" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "

Chapter 2: Introduction to C Programming

" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "

Example 2.1, Page number: 2.2

" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\n", "print \"Welcome to python programming\"\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Welcome to python programming\n" ] } ], "prompt_number": 1 }, { "cell_type": "markdown", "metadata": {}, "source": [ "

Example 2.5, Page number: 2.5

" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\n", "\n", "sum=10+20\n", "print sum\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "30\n" ] } ], "prompt_number": 2 }, { "cell_type": "markdown", "metadata": {}, "source": [ "

Example 2.6, Page number: 2.5

" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\n", "\n", "\n", "num1,num2=50,25\n", "Sum=num1+num2\n", "print \"addition of %d and %d = %d\" %(num1,num2,Sum)\n", "\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "addition of 50 and 25 = 75\n" ] } ], "prompt_number": 2 }, { "cell_type": "code", "collapsed": false, "input": [], "language": "python", "metadata": {}, "outputs": [] } ], "metadata": {} } ] }