Upload files to "OOP/Java/Lab/Week1"

This commit is contained in:
aadit 2024-08-05 01:06:30 +05:30
parent 24683dac5a
commit 8542582101
5 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,16 @@
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);
}
}
}