Java loops

java loops 

Diana is playing a game with two dice. One die has m sides labelled 1, 2, 3, ... to m. The other die has n sides labelled 1, 2, 3, ...,n. Write a program to determine how many ways can she roll the dice to get the sum 10.


Share Send to a friend Watch Report
 
 

Posted Answers

No answers were posted yet - be the first one to answer!

Sign in to participate

Got an answer for llzj? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

What is this and how to make java work?

what is this and how to make java work?
Submitted by jamy9h   6 months ago.
  • viewed 368 times
Last answer posted 6 months ago by jamy9h


Q:

How to import java package into visual studio 2005

how to import java package into my visual studio 2005 console project? Or I may ask Why the error 'cannot find type 'java.awt ...
Submitted by MichelleBong   1 year ago.
  • viewed 627 times
Last answer posted 1 year ago by Eran


Q:

Java install problems

after playing online games from pogo it now says i need to install java plug play.when i try it says the insalatoin package could ...
Submitted by oinky645   2 years ago.
  • viewed 879 times
Last answer posted 2 years ago by Bankrbabs



» More...

Be The First To Answser

Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them

» More...

Explore Related Posts in Forums

Sun Unveils Java Applications Store : java

Not for Sun. java java java java. What's next. The C store for all the applications written... about the Ruby store of the Python-mart?Well, Java is a platform not just a programming language. Just

Are there any good, lightweight open source Java CMSs? : java

Know about any such thing? Failing a proper CMS, a simple blog engine in Java would do. Something like Wordpress, say, only in Java. Anyone?noLet me search that for you: http://sourceforge.net/search

Java warning - the page you are viewing uses Java

It randomly generated a Java warning (not JavaScript) when Java isn't installed on the system (Windows, IE... ). I assume this is because you want to determine if the user has Java installed or not. I believe Henric: We don't use java, or java applets. Our code is 100% javascript. We also have a non
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
ADVERTISEMENT
AOL Autos Q&A is powered by Yedda an AOL Company
Copyright © 2006-2009, Yedda Inc. and respective copyright owners