Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Assignment-3c
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#python 3.6.9 #Assignment-3c y=int(input("Enter the year you want to check\n")) if(y%4==0): if(y%400==0): print("It is a leap year") elif(y%100!=0): print("It is a leap year") else: print("It is not a leap year") else: print("It is not a leap year")
2020
[
-
]
Show input
Absolute running time: 0.2 sec, cpu time: 0.03 sec, memory peak: 8 Mb, absolute service time: 0,34 sec
edit mode
|
history
|
discussion
Enter the year you want to check It is a leap year