FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
programminginpython.com/biggest_smallest_3numbers.py at master · tanuatk/programminginpython.com · GitHub
tanuatk
/
programminginpython.com
Public
forked from
avinashn/programminginpython.com
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
programminginpython.com
/
biggest_smallest_3numbers.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (22 loc) · 776 Bytes
Breadcrumbs
programminginpython.com
/
biggest_smallest_3numbers.py
Copy path
File metadata and controls
29 lines (22 loc) · 776 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
__author__
=
'Avinash'
number1
=
int
(
input
(
'Enter First number : '
))
number2
=
int
(
input
(
'Enter Second number : '
))
number3
=
int
(
input
(
'Enter Third number : '
))
def
largest
(
num1
,
num2
,
num3
):
if
(
num1
>
num2
)
and
(
num1
>
num3
):
largest_num
=
num1
elif
(
num2
>
num1
)
and
(
num2
>
num3
):
largest_num
=
num2
else
:
largest_num
=
num3
print
(
"The largest of the 3 numbers is : "
,
largest_num
)
def
smallest
(
num1
,
num2
,
num3
):
if
(
num1
<
num2
)
and
(
num1
<
num3
):
smallest_num
=
num1
elif
(
num2
<
num1
)
and
(
num2
<
num3
):
smallest_num
=
num2
else
:
smallest_num
=
num3
print
(
"The smallest of the 3 numbers is : "
,
smallest_num
)
largest
(
number1
,
number2
,
number3
)
smallest
(
number1
,
number2
,
number3
)
Back
|
FazBrowse Home
|
New Git URL