Last active
October 6, 2016 19:55
-
-
Save dmfilipenko/06409c6d4eed10cdaab5f0cf2acea2f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| 1. «Sum of three numbers» | |
| """ | |
| a = int(input()) | |
| b = int(input()) | |
| c = int(input()) | |
| print(a + b + c) | |
| """ | |
| 2. «Area of a right triangle» | |
| """ | |
| b = int(input()) | |
| h = int(input()) | |
| print(b*h/2) | |
| """ | |
| 3. «Apple sharing» | |
| """ | |
| n = int(input()) | |
| k = int(input()) | |
| print(k // n) | |
| print(k % n) | |
| """ | |
| 4. «Digital clock» | |
| """ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment