Update samples/General/SmallExamples/Conjecture/knuthconjecture.ring - Add the output
/*
- Knuth's conjecture
+** Knuth's conjecture
*/
# Example: Reach to number 5 from number 4 using Fact, Sqrt & Floor
+/*
+** ---[Output]---
+**
+** =======================================================
+** Input: 4
+** =======================================================
+** Fact(4): 24
+** Fact(Fact(4)): 620448401733239409999872.00
+** Sqrt(620448401733239409999872.00): 787685471322.94
+** Sqrt(787685471322.94): 887516.46
+** Sqrt(887516.46): 942.08
+** Sqrt(942.08): 30.69
+** Sqrt(30.69): 5.54
+** =======================================================
+** Output: floor(5.54): 5
+** =======================================================
+**
+*/
+
func main
line()
nInput = 4
- ? "Input: " + 4
+ ? "Input: " + nInput
line()
- v = fact(4)
+ v = fact(nInput)
? "Fact("+nInput+"): " + v
r = fact(v)
? "Fact(Fact("+nInput+")): " + r
