@pattmax/

Compare Size of Eight Numbers

Python

Thing I made for AP CS, not really useful in anyway.

fork
loading
Files
  • main.py
main.py
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
30
31
32
33
one = int(input("input first card: "))
two = int(input("input second card: "))
three = int(input("input third card: "))
four = int(input("input fourth card: "))
five = int(input("input fifth card: "))
six = int(input("input sixth card: "))
seven = int(input("input seventh card: "))
eight = int(input("input eighth card: "))

small = one

if (small >= two):
	small = two

if (small >= three):
	small = three

if (small >= four):
	small = four

if (small >= five):
	small = five

if (small >= six):
	small = six

if (small >= seven):
	small = seven

if (small >= eight):
	small = eight

print("Smallest: " + str(small))