From 99480873737f9aed769901f86c39d074982368b3 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 30 Apr 2019 16:23:21 +1000 Subject: [PATCH] oceani: fix up test program. The messages being printed didn't make sense - weird. Signed-off-by: NeilBrown --- csrc/oceani.mdc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/csrc/oceani.mdc b/csrc/oceani.mdc index 0760674..97fa311 100644 --- a/csrc/oceani.mdc +++ b/csrc/oceani.mdc @@ -3299,12 +3299,12 @@ Fibonacci, and performs a binary search for a number. /* If a variable is not used after the 'if', no * merge happens, so types can be different */ - if A * 2 > B: + if A > B * 2: double:string = "yes" print A, "is more than twice", B, "?", double else: - double := A*2 - print "double", A, "is only", double + double := B*2 + print "double", B, "is", double a : number a = A; -- 2.43.0