Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
-1
Please
log in
to post a comment.
2
R Basic
Spiral
Visualization Test Exercise 6 ggplot
Sample R program of all basic functions
Iron suco fatorial
R exemplo
19-08-2020-JacobiSistemaEuler
Generate numbers based on mean and stdev
31-08-2020-Exemplo Ajuste
stackse - search stackoverflow differently
Please log in to post a comment.