This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Multiplication Table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Multiplication Table" Watch "Multiplication Table" New topic
Author

Multiplication Table

Reddy Prasad Kurapati Venkata
Greenhorn

Joined: Jan 16, 2008
Posts: 7
Will any one write a program to display a multiplication table using control loops ?
Balasubramanian Chandrasekaran
Ranch Hand

Joined: Nov 28, 2007
Posts: 215

Originally posted by Reddy Prasad Kurapati Venkata:
Will any one write a program to display a multiplication table using control loops ?


Very sorry we not here to simply write program for others.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3477
    
  13
Originally posted by Balasubramanian Chandrasekaran:
Very sorry we not here to simply write program for others.


But if you want to try it yourself, we will help if you have any problems. Just post the code (using code tags) and tell us what the problem is. If there are compilation errors, post the exact messages. If it's not doing what you expect, tell us what you are expecting and what it is doing.


Joanne
Reddy Prasad Kurapati Venkata
Greenhorn

Joined: Jan 16, 2008
Posts: 7
<code>class Multiplication
{
public static void main(String[] args)
{
final int COLMAX =10;
final int ROWMAX = 12;
int row;
int column;
int y;
do{
column = 1;
do {
y = row * column;
System.out.println(y);
column+=1;
}
while(column <= COLMAX);
System.out.println("\n");
row = row +1;
}
while(row <= ROWMAX)
}
}
</code>
Reddy Prasad Kurapati Venkata
Greenhorn

Joined: Jan 16, 2008
Posts: 7
Will any one compile that code and tell me where I went wrong
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3477
    
  13
Originally posted by Reddy Prasad Kurapati Venkata:
Will any one compile that code and tell me where I went wrong


...tell us what the problem is. If there are compilation errors, post the exact messages. If it's not doing what you expect, tell us what you are expecting and what it is doing.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11250
    
  16

How do you know you went wrong? Did you compile it and run it? If so, tell us WHAT HAPPENED. If you didn't, then that should be your next step.

The easier you make it for people to help you, the more likely they are to help. You should probably spend some time reading this to get an idea how to help others help you.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiplication Table