bsc

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

R_Code-11.r (528B)


      1 # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026
      2 # Repo: https://github.com/notamitgamer/bsc
      3 # License: MIT
      4 
      5 # Write a while loop that starts with a multiplier of 1. 
      6 # The loop should multiply the current multiplier by 4, 
      7 # assign it to a result variable, and print the result. 
      8 # The loop should exit if the result exceeds 100; otherwise, 
      9 # increment the multiplier by 1. 
     10 
     11 num = 1 
     12 while(TRUE) {
     13     result <- num * 4
     14     print(result)
     15     
     16     if (result > 100) {
     17         break
     18     }
     19     num = num + 1
     20 }
© 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