MIT-Curricular/OOP/Java/Lab/Week1/MultiplicationTable.java

16 lines
379 B
Java
Raw Normal View History

2024-08-05 01:06:30 +05:30
class MultiplicationTable
{
public static void main(String args[])
{
int a,b,i,c;
a = Integer.parseInt(args[0]);
b = Integer.parseInt(args[1]);
for(i=1;i<=b;i++)
{
c = a*i;
System.out.println(+a+" x "+i+" = "+c);
}
}
}