bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

root / semester_1 / R / Code / R_Prac-2.r

R_Prac-2.r (183B)


      1 # Check whether a number is even or odd.
      2 
      3 num <- readline(prompt="Enter the number: ")
      4 num <- as.integer(num)
      5 print(paste(num, "is", ifelse(num %% 2 == 0, "EVEN", "ODD"), "number."))
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror