Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 i need help 4 my assignment
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
CIC_ming




PostPosted: Mon Mar 08, 2004 9:24 am   Post subject: i need help 4 my assignment

Halo
I m working on my assignment
i dun understand the last question Confused
the question is asking me to write a program that randomly selects 2 integers
And it should output both integers and their product
Pls help!!
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Mar 08, 2004 9:26 am   Post subject: (No subject)

you don't understand that you have to select two random integers and multiply them? Confused
code:

var num1,num2:int
num1 := Rand.Int(1,10)
num2 := Rand.Int(1,10)
put num1, " * ", num2, " = ", num1*num2


Laughing
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Dan




PostPosted: Mon Mar 08, 2004 11:21 am   Post subject: (No subject)

in the futtuer plz name your subject better....
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: