debluzz
Junior Member
Thanks tsh73 I'll work with it.
Posts: 57
|
zero's
Apr 6, 2021 12:07:06 GMT -5
Post by debluzz on Apr 6, 2021 12:07:06 GMT -5
how do I get rid of zero answers. replace with blank.
my inputs are between 4-32 into c1-c8
(1) example inputs input c7 input c8 (2)example if (C7=31 AND C8=32) THEN
sequence7=31
sequence8=32
end if
if (C7=32 AND C8=31) THEN
sequence7=32
sequence8=31
end if (3) (this is where I want to NOT see zero's on sequence answers) print i7;" ";pairs7$;" ";sequence7
print i8;" ";pairs8$;" ";sequence8
thank you keep it simple
|
|
|
zero's
Apr 6, 2021 12:40:59 GMT -5
Post by Rod on Apr 6, 2021 12:40:59 GMT -5
I am kinda guessing because I don't really understand the question.
[input] while c7 = 0 input "input a number > 0 " ;c7 wend print "you input ";c7
|
|
|
zero's
Apr 6, 2021 14:20:36 GMT -5
Post by Carl Gundel on Apr 6, 2021 14:20:36 GMT -5
You could write a function to substitute spaces for zeroes, but I'm not really sure what you mean.
for x = 1 to 5 read v print "The value is: "; zeroOrSpace$(v) next x end
data 1, 0, 3, 0, 4
function zeroOrSpace$(value) zeroOrSpace$ = str$(value) if value = 0 then zeroOrSpace$ = " " end function
|
|