Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Leap Year Finder
#How to find something is leap year or not demo = readLines(file("stdin"), warn = FALSE) year = as.integer(demo) if(((year %% 4) == 0) && ((year %% 100) == 0) & ((year %% 400) == 0)) { print(paste(year, "is a leap year")) }else { print(paste(year, "is not a leap year")) }
run
|
edit
|
history
|
help
0
mywall
Teste de sheffé
Teste
Variance Gamma process
19-08-2020-JacobiSistemaEuler
12-08-2020Ex3.19
28-09-2020Int-poli-inter
14-09-2020GRamLD
First wall
Magic Constant