summaryrefslogtreecommitdiff
path: root/Let_us_C/chapter-4.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Let_us_C/chapter-4.ipynb')
-rw-r--r--Let_us_C/chapter-4.ipynb12
1 files changed, 0 insertions, 12 deletions
diff --git a/Let_us_C/chapter-4.ipynb b/Let_us_C/chapter-4.ipynb
index d6b348c1..75a56ab9 100644
--- a/Let_us_C/chapter-4.ipynb
+++ b/Let_us_C/chapter-4.ipynb
@@ -25,7 +25,6 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to illustrate switch-case control structure(without break)'''\n",
"\n",
"#Variable declaration\n",
"i = 2\n",
@@ -65,7 +64,6 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "'''Program to illustrate switch-case control structure'''\n",
"\n",
"#Variable declaration\n",
"i = 2\n",
@@ -104,7 +102,6 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "'''An example of scrambled case order'''\n",
"\n",
"#Variable declaration\n",
"i = 22\n",
@@ -143,7 +140,6 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "'''An example which shows the use of 'char' values in case and switch'''\n",
"\n",
"#Variable declaration\n",
"c = 'x'\n",
@@ -182,8 +178,6 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "'''An example which shows how to execute a common set of statements for\n",
- "multiple cases.'''\n",
"\n",
"#Input from user\n",
"#ch = raw_input(\"Enter any of the alphabet a, b, or c : \")\n",
@@ -223,9 +217,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "'''An example that shows every statement in a switch must belong to some \n",
"case or the other. If it doesn\u2019t,the compiler won\u2019t report an error.\n",
- "However, the statement would never get executed.'''\n",
"\n",
"#Input from user\n",
"#i = raw_input(\"Enter value of i \")\n",
@@ -255,8 +247,6 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "'''Program shows how to use goto statement'''\n",
- "'''Python doesnt support statements like 'goto' '''\n",
"#Input from user\n",
"#goals = raw_input(\"Enter the number of goals scored against India: \")\n",
"goals = 3\n",
@@ -292,9 +282,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "'''The following program illustrates the usage of 'goto'\n",
"when we want to take the control out of the loop that is contained in\n",
- "several other loops.'''\n",
"\n",
"\n",
"#nested for loops\n",