Do-if

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Do-if is an esolang created by User:Martsadas which uses do-if and do-while

PRINT {'Hello, World!\n'}
let $X = 0
do
  PRINT {'Hello world ', $X, '!\n"}
while $X < 10
let $X = INPN {}
let $R = 1
do
  let $R = $R * $X
  let $X = $X - 1
while $X > 1
PRINT {$X, '! = ', $R}