Making Multiplication table in Java?
public class Multiplication {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int ans = 1, counter = 1, counterx, countery = 1;
//counterx is the
I don't really understand your logic but here is how I would do it with two variables.
for (int y = 1; y <= 12; y++)
{
//Print the columns x
for (int x = 1; x <= 12; x++)
System.out.print(x * y + "\t");