from math import*
x= eval(input("insira um angulo: "))
k= int(input("insira a quantidade de termos: "))
t=1
s=1
snl=-1
i=2
while t<k:
	s=s+snl*((x**i)/(factorial(i)))
	i=i+2
	snl=snl*-1
	t=t+1
r=s
print(round(r,10))
3c206bdc3c618876c451fb4d272c3feed2b92a6c
<mask token>

<mask token>
while t < k:
    s = s + snl * (x ** i / factorial(i))
    i = i + 2
    snl = snl * -1
    t = t + 1
<mask token>
print(round(r, 10))

<mask token>
x = eval(input('insira um angulo: '))
k = int(input('insira a quantidade de termos: '))
t = 1
s = 1
snl = -1
i = 2
while t < k:
    s = s + snl * (x ** i / factorial(i))
    i = i + 2
    snl = snl * -1
    t = t + 1
r = s
print(round(r, 10))

from math import *
x = eval(input('insira um angulo: '))
k = int(input('insira a quantidade de termos: '))
t = 1
s = 1
snl = -1
i = 2
while t < k:
    s = s + snl * (x ** i / factorial(i))
    i = i + 2
    snl = snl * -1
    t = t + 1
r = s
print(round(r, 10))

from math import*
x= eval(input("insira um angulo: "))
k= int(input("insira a quantidade de termos: "))
t=1
s=1
snl=-1
i=2
while t<k:
	s=s+snl*((x**i)/(factorial(i)))
	i=i+2
	snl=snl*-1
	t=t+1
r=s
print(round(r,10))