-
Notifications
You must be signed in to change notification settings - Fork 2
/
Median.py
37 lines (34 loc) · 881 Bytes
/
Median.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
34
35
36
#!/usr/bin/python3
#Dibuat OLeh Noprianto
#BLackWhiteTeam
import math
import mechanize
print (" ___ __ ___ _______ ")
print (" | | \ \ | | |_| \_\ ")
print (" | | \ \ | | |_| \_\ ")
print (" | | \ \ | | |_| \_\ ")
print (" | | \ \_| | |_| /_/ ")
print ("|___| \____| |_|___/_/ ")
print ("-------------------------- ")
print ("")
print ("Mencari Median ")
print ("")
print (" Rumus Median ")
print ("")
print ("Li + P . ( 1,5n + F )")
print (" fi ")
print ("")
print ("")
a = input ("Masukan nilai Li : ")
b = input ("Masukan Panjang : ")
c = input ("Masukan 1,5n : ")
d = input ("Masukan nilai F : ")
e = input ("Masukan nilai fi : ")
a = int and float (a)
b = int and float (b)
c = int and float (c)
d = int and float (d)
e = int and float (e)
print ("Jumlah Median = ", b*(c-d)/e+a )
print ("")
print ("TrimaKasih")