diff options
Diffstat (limited to 'Practical_C_Programming/Chapter_23_1.ipynb')
-rw-r--r-- | Practical_C_Programming/Chapter_23_1.ipynb | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/Practical_C_Programming/Chapter_23_1.ipynb b/Practical_C_Programming/Chapter_23_1.ipynb index 065813d7..bde77ef6 100644 --- a/Practical_C_Programming/Chapter_23_1.ipynb +++ b/Practical_C_Programming/Chapter_23_1.ipynb @@ -1,6 +1,7 @@ { "metadata": { - "name": "Chapter 23" + "name": "", + "signature": "sha256:456077e76cba45d73549d009e1de5e86e8fe318cfd47c138325bf27f45638790" }, "nbformat": 3, "nbformat_minor": 0, @@ -11,25 +12,42 @@ "cell_type": "heading", "level": 1, "metadata": {}, - "source": "Chapter 23: Programming adages" + "source": [ + "Chapter 23: Programming adages" + ] }, { "cell_type": "heading", "level": 3, "metadata": {}, - "source": "Example 23.1, Page number: 447" + "source": [ + "Example 23.1, Page number: 447" + ] }, { "cell_type": "code", "collapsed": false, - "input": "# Example 23.1.py\n# To check whether the number input by the user is 2 or not\n\n\n# Variable declaration\nnumber = 2\n\n# Calculation and result\nif (number != 2) :\n print ('Number is not two\\n')\nelse :\n print ('Number is two\\n')", + "input": [ + "\n", + "# Variable declaration\n", + "number = 2\n", + "\n", + "# Calculation and result\n", + "if (number != 2) :\n", + " print ('Number is not two\\n')\n", + "else :\n", + " print ('Number is two\\n')" + ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", - "text": "Number is two\n\n" + "text": [ + "Number is two\n", + "\n" + ] } ], "prompt_number": 1 |