It's the vowel's program in JAVA Enjoy guyzz!!
package tables;
import java.util.Scanner;
public class Tables {
public static void main(String[] args) {
Scanner abcd=new Scanner(System.in);
System.out.println("Enter which table you want to print:");
int z= abcd.nextInt();
System.out.println("Enter how much time you want to print;");
int x= abcd.nextInt();
for (int i=0;i<=x; i++)
{
for (int j=0;j<z; j++){
System.out.println(z+"*"+j+" = "+(z*j));
}
}
}
}
No comments:
Post a Comment