bsc

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

root / semester_1 / R / Code / R_Code-10.r

R_Code-10.r (277B)


      1 # Create a numeric vector of student exam scores. 
      2 # Write a single line of code that evaluates these scores and 
      3 # outputs "Pass" for any score 50 or above, and "Fail" for any score below 50.
      4 
      5 score <- c(45, 26, 89, 21, 75, 99, 13, 68, 85)
      6 
      7 ifelse(score < 50, "Fail", "Pass")
© 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