Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiplication Table

 
Reddy Prasad Kurapati Venkata
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will any one write a program to display a multiplication table using control loops ?
 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Reddy Prasad Kurapati Venkata
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will any one compile that code and tell me where I went wrong
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12126
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic