bsc

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

R_Prac-4.r (401B)


      1 # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026
      2 # Repo: https://github.com/notamitgamer/bsc
      3 # License: MIT
      4 
      5 # Program to add two numbers in R program.
      6 
      7 num1 <- as.double(readline(prompt="Enter 1st number: "))
      8 num2 <- as.double(readline(prompt="Enter 2nd number: "))
      9 if(is.na(num1) || is.na(num2)) {
     10     stop("You did not enter a valid number.")
     11 }
     12 print(paste("Result", num1 + num2))
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror