Saved Bookmarks
| 1. |
Find the errors from the following code:if (a>b)print a:else if (a<b)print b:elseprint “both are equal” |
|
Answer» if (a>b) // missing colon print a: else if (a<b) // missing colon // should be elif print b: else // missing colon print “both are equal" |
|