BINARY - "1" 22 IF N...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 LIST 1 REM MATTHEW HEELAN COACH SECTION D1 05/12/07 2 REM PROBLEM 4 CONVERT ANY NUMBER LESS THAN 2048 INTO BINARY 9 INPUT " A NUMBER LESS OR EQUAL TO 2048" 10 FOR E = 12 TO -10 STEP -1 20 IF N < 2^E THEN PRINT "0" 21 IF N >= 2^E THEN PRINT
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: &quot;1&quot; 22 IF N &gt;= 2^E THEN LET N = N - 2^E 23 IF E = 0 THEN PRINT &quot;.&quot; 30 NEXT E Ok RUN A NUMBER LESS OR EQUAL TO 2048? 645.78 0001010000101.1100011110Ok N Page 1...
View Full Document

Page1 / 2

BINARY - &amp;amp;quot;1&amp;amp;quot; 22 IF N...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online