{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"authorship_tag":"ABX9TyOrGHAaxqBSWAvHFgPpju+D"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"code","execution_count":null,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"Piz2tJpZn4K2","executionInfo":{"status":"ok","timestamp":1717678622465,"user_tz":-330,"elapsed":14,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"fc28dccf-b6a1-40a0-ab1e-525cf8a16a43"},"outputs":[{"output_type":"stream","name":"stdout","text":["The largest number is 16\n"]}],"source":["#Example 4: Write a program to find the largest number among the three numbers.\n","# Program to find the largest number among the three numbers\n","n1 = 10\n","n2 = 14\n","n3 = 16\n","if (n1 >= n2) and (n1 >= n3):\n","  largest = n1\n","elif (n2 >= n1) and (n2 >= n3):\n","  largest = n2\n","else:\n","  largest = n3\n","print(\"The largest number is\", largest)"]}]}