Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)
___________________________________________________________________________
 
PREVIOUS NEXT
Tagged: #code #snippet
ADD COMMENT
Topic
Name
2+6 =