Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
24-09-2020Def-função
31-08-2020-Exemplo AjusteNaoL
ExDecaiEulerMin23-02-21
26-08-2020AjusteCurvab
Grad-sistema
stats and fats survey histograms
Desktop-Sprite-image-Interval
plot_cars
Pendulum Experiment
factorial code
Please log in to post a comment.