Difference between revisions of "UTS"

From ccitonlinewiki
Jump to: navigation, search
(Created page with "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...")
 
Line 1: Line 1:
 
import math
 
import math
 +
  
 
print('berapa nilai m1?')
 
print('berapa nilai m1?')
 +
 
a =eval(input())
 
a =eval(input())
 +
 
print('berapa nilai m2?')
 
print('berapa nilai m2?')
 +
 
b =eval(input())
 
b =eval(input())
 +
 
print('berapa nilai m3?')
 
print('berapa nilai m3?')
 +
 
c =eval(input())
 
c =eval(input())
 +
 
print('berapa nilai m4?')
 
print('berapa nilai m4?')
 +
 
d =eval(input())
 
d =eval(input())
 +
  
 
alfa=d/(a+b+c)
 
alfa=d/(a+b+c)
 +
 
print('berarti sinus alfa adalah',alfa)
 
print('berarti sinus alfa adalah',alfa)
  
 
sudutalfa=math.asin(alfa)
 
sudutalfa=math.asin(alfa)
 +
 
sudutalfa2=math.degrees(sudutalfa)
 
sudutalfa2=math.degrees(sudutalfa)
 +
 
print('jadi nilai sudut alfa adalah',sudutalfa2)
 
print('jadi nilai sudut alfa adalah',sudutalfa2)
  
  
 
[[File:Uts1.png]]
 
[[File:Uts1.png]]

Revision as of 14:56, 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)


Uts1.png