Exécution de l'extrait de code
let arr = [1, 2, 3];
arr.slice().reverse().forEach(x => console.log(x))
Run code snippet
Roaming Coder
let arr = [1, 2, 3];
arr.slice().reverse().forEach(x => console.log(x))
Run code snippet
#code snippet
a=int(input('number'))
b,c=0,0
for i in range(1,a+1):
if i%2==0:
b+=i
else:
c+=i
d=b+c
print(b,c,d)
___________________________________________________________________________