11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MIXTURES OF DATAThe DATA statement can hold strings or numbers in any order.But you must be careful in your READ command to have the correct kind of variable tomatch the kind of data.Correct:70 DATA 77.FUZZ75 READ N80 READ B$Wrong:70 DATA 77.FUZZ75 READ B$ OK, B$ box holds "77"80 READ N 9SYNTAX ERROR IN 70You can't put "FUZZ" into a number box.Assignment 18:1. Write a program naming your relatives. When you ask the computer "UNCLE", itgives the names of all your uncles. DATA statements will have pairs of items. The firstitem is a relation like FATHER or COUSIN. The second item is a person's name. Ofcourse, you may have several brothers, for example, each with a DATA statement.107

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!