Re: TIB: Division Program... hum


[Prev][Next][Index][Thread]

Re: TIB: Division Program... hum




:ClLCD
:Input "Dividende",A
:Input "Diviseur",B
:disp "quot",mod(A,B),"Rest",A-B*mod(A,B

i take that back.  this is probably the smaallest it will get.



---Brice-Olivier Demory <brice.demory@span.ch> wrote:
>
> 
> Hi All !
> Ok, it was a stupid question. I did it. I'm a beginner in Basic
> programming. Could you give me some tips to reduce the size
> of the program ?
> Thanks !
> 
> :ClLCD
> :Disp "Dividende"
> :Input A
> :Disp "Diviseur"
> :Input B
> :A/B/->/C
> :iPart C/->/D
> :D*B/->/C
> :A-C/->/R
> :Outpt (6,1,"Quotient :"
> :Outpt (7,1,"Reste    :"
> :Outpt (6,12,D
> :Outpt (7,12,R
> 
> P.S.: Thanks Matthew for your help.
> 
> Brice-Olivier Demory - http://www.skylink-astro.net/pagepers/demory
> _________________________________________________________
> Location : 46d10m30s North / 6d09m23s East // Alt.: 413 m.
> Responsable-animateur du club d'astronomie Helios - Hte-Savoie (F)
> 

==
The Garth Johnson

Visit my website!  http://www.bigfoot.com/~garthjohnson



_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com