Skip to content

Comments

Python: Division#73

Open
shakeel0581 wants to merge 12 commits intoAbubakar-Sattar:mainfrom
shakeel0581:main
Open

Python: Division#73
shakeel0581 wants to merge 12 commits intoAbubakar-Sattar:mainfrom
shakeel0581:main

Conversation

@shakeel0581
Copy link

Task
The provided code stub reads two integers, a and b, from STDIN.

Add logic to print two lines. The first line should contain the result of integer division, a //b . The second line should contain the result of float division, a / b.

No rounding or formatting is necessary.

Example
a = 3
b = 5

The result of the integer division 3//5 = 0.
The result of the float division is 3/5 = 0.6.

Print:
0
0.6

Return the greatest of the four integers.

Functions are a bunch of statements glued together. A function is provided with zero or more arguments, and it executes the statements on it. Based on the return type, it either returns nothing (void) or something
The provided code stub reads two integers, a and , bfrom STDIN.

Add logic to print two lines. The first line should contain the result of integer division, a // b. The second line should contain the result of float division,  a/b .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant