python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
n=int(input(("Введи натуральне число")) i=2 t=2 с=2 while(c!=n and i!=n): c=c+2 if c==n: print("Івану-Царевичу дістанеться",t) else: i=i+2 t=t+i print("Івану-Царевичу дістанеться",t)
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up