Computer Science, asked by elvinip4433, 6 hours ago

Write a program to input a positive integer. It should then print the multiplication

table of that number up to 10​

Answers

Answered by neetibunde
6

Explanation:

The program output is also shown below.

import java.util.Scanner;

public class Multiplication_Table.

{

public static void main(String[] args)

{

Scanner s = new Scanner(System. in);

System. out. print("Enter number:");

int n=s. nextInt();

Answered by sushree2033
1

Answer:

Write a program to input a positive integer. It should then print the multiplication table of that number up to 10.​

Explanation:

Write a program which:

Print out the Multiplication Table for a range of numbers (positive integers).

Prompts the user for a starting number: say 'x'

Prompts the user for an ending number: say 'y'

Prints out the multiplication table of 'x' up to the number 'y'

Sample outputs include:

SPECIFIC REQUIREMENTS

You must use the following method to load the array: public static void loadArray(int table[ ][ ], int x, int y)

You must use the following method to display the array: public static void printMultiplicationTable(int table[ ][ ], int x, int y)

You must load the table array with products of the factors. For example:

In Figure 1 above, the 5 x 5 array is loaded with the products for the times tables from 4 to 8

In Figure 2 above, the 2 x 2 array is loaded with the products for the time's tables from 5 to 6

Attachments:
Similar questions