You are on page 1of 1

Sample 3

Entering and printing data


poundtotroy=14.5833

goldprice=350

PRINT"Are you worth your weight in gold"

PRINT"Please enter your weight in pounds and we shall see"

INPUT weight

value =goldprice*weight*poundtotroy

LOCATE 10,25

PRINT"Your weight in gold is worth £";

PRINT USING "######.##";value

END

You might also like