Search
 
SCRIPT & CODE EXAMPLE
 

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)
___________________________________________________________________________
Comment

PREVIOUS NEXT
Code Example
Javascript :: async function syntax 
Javascript :: async function js 
Javascript :: form validation jquery input array 
Javascript :: falsy values in js 
Javascript :: google script check if cell is empty 
Javascript :: call apply and bind method in javascript 
Javascript :: sort array by date in javascript 
Javascript :: how to get parameter from url in react js 
Javascript :: react native dotenv 
Javascript :: Get size of a View in React Native 
Javascript :: class constructor javascript 
Javascript :: chrome storage local example 
Javascript :: xlsx to json using xlsx react 
Javascript :: console vuex data 
Javascript :: http header express 
Javascript :: run react app 
Javascript :: js append to array 
Javascript :: javascript for loop array of objects 
Javascript :: js initialize array with values 
Javascript :: fizzbuzz javascript 
Javascript :: remove spaces from string javascript 
Javascript :: import firebase auth react 
Javascript :: javascript detectar la pagina 
Javascript :: react native webview postmessage example 
Javascript :: Comparing and Filtering two arrays 
Javascript :: javascript getters and setters 
Javascript :: textarea onclick select all 
Javascript :: javascript array slice 
Javascript :: express middleware pass parameter 
Javascript :: prepend option on 2nd index jquery 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =