Difference between revisions of "UTS"

From ccitonlinewiki
Jump to: navigation, search
Line 1: Line 1:
import math
 
  
 +
==soal A==
  
print('berapa nilai m1?')
+
[[File:Uts a kode.png]]
  
a =eval(input())
 
  
print('berapa nilai m2?')
+
[[File:Uts a hasil.png]]
 
 
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)
 
 
 
 
 
 
 
[[File:Uts2.png]]
 
 
 
 
 
[[File:Uts1.png]]
 

Revision as of 15:23, 21 October 2019

soal A

Uts a kode.png


Uts a hasil.png