Quick Newbie help with qbasic

ok i am trying to make a program that does price of item plus tax then prints final price out , but for some reason i keep getting "0"
here is my code so far

CLS
INPUT "Price of Item", price#
tax! = .07
atax = price# * tax!
fprice# = atax + price#
PRINT "Final Price", fprice
LPRINT "ABC Recipt", fprice#
END




Comments

  • [b][red]This message was edited by the KDivad Leahcim at 2002-6-24 13:30:12[/red][/b][hr]
    : ok i am trying to make a program that does price of item plus tax then prints final price out , but for some reason i keep getting "0"
    : here is my code so far
    :
    : CLS
    : INPUT "Price of Item", price#
    : tax! = .07
    : atax = price# * tax!
    : fprice# = atax + price#
    : PRINT "Final Price", fprice[b]# 'Added type symbol[/b]
    : LPRINT "ABC Recipt", fprice#
    : END



  • try like this:

    CLS
    INPUT "Price of Item",x$
    y$= .07
    z$= x$ * y$
    loacte 1,2
    print "final price:"
    loacte 1,14
    print z$
    LPRINT x$

    now you only have to rearange the text

    good luck

    urban guerrilla freackware anyware




Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories