Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Leap Year or Not
#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
Dynamic Simulation for Bank - Exercise 3 in 1.7
Zac2
EulerSIR
Tournois Mount & Blade
voke
R2
James
Chi-squared tests of independence [m musculoskeletal injuries treated]
helloworld
Why is height normal