BBC BASIC for Windows
« Can someone pls have a look at my code and help!! »

Welcome Guest. Please Login or Register.
Apr 6th, 2018, 12:12am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Can someone pls have a look at my code and help!!  (Read 398 times)
Anish
New Member
Image


member is offline

Avatar




PM


Posts: 1
xx Can someone pls have a look at my code and help!!
« Thread started on: Sep 22nd, 2012, 10:04am »

REM 3x 8-Sided Dice
PRINT"A"RND(8)
PRINT"B"RND(8)
PRINT"C"RND(8)
_PRINT_"Total="(A+B+C)
END
I need the A, B, C values + the total
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Can someone pls have a look at my code and hel
« Reply #1 on: Sep 22nd, 2012, 10:39am »

on Sep 22nd, 2012, 10:04am, Anish wrote:
I need the A, B, C values + the total

This works:

Code:
      REM 3x 8-Sided Dice
      A=RND(8)
      B=RND(8)
      C=RND(8)
      PRINT"A" A
      PRINT"B" B
      PRINT"C" C
      PRINT"Total="(A+B+C)
      END 

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls