Difference between revisions of "UTS"
Line 28: | Line 28: | ||
print('jadi nilai sudut alfa adalah',sudutalfa2) | print('jadi nilai sudut alfa adalah',sudutalfa2) | ||
+ | |||
+ | |||
+ | |||
+ | [[File:Uts2.png]] | ||
[[File:Uts1.png]] | [[File:Uts1.png]] |
Revision as of 14:57, 21 October 2019
import math
print('berapa nilai m1?')
a =eval(input())
print('berapa nilai m2?')
b =eval(input())
print('berapa nilai m3?')
c =eval(input())
print('berapa nilai m4?')
d =eval(input())
alfa=d/(a+b+c)
print('berarti sinus alfa adalah',alfa)
sudutalfa=math.asin(alfa)
sudutalfa2=math.degrees(sudutalfa)
print('jadi nilai sudut alfa adalah',sudutalfa2)