This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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: 3415
    
  12
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: 3415
    
  12
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: 11150
    
  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
 
Consider Paul's rocket mass heater.
 
subject: Multiplication Table
 
Similar Threads
program that prints the multiplication table up to one
Maths for algorithms.
Multiplication Table
Multiplication Table
Problem with FOR loop..Need Help ASAP...