import java.util.*;
public class oddTabble
{
public static void main(String args[])
{
Scanner p= new Scanner(System.in);
int num,limit;
System.out.println("Enter the table number please :");
num=p.nextInt();
System.out.println("Enter the limit of table please ");
limit=p.nextInt();
for(int i=1;i<=limit;i++)
{
if(i%2==1)
System.out.println(num+" x "+i+" = "+(num*i));
}}}
0 comments:
Post a Comment