Skip to content

Instantly share code, notes, and snippets.

@P0huber
Created June 24, 2017 14:39
Show Gist options
  • Save P0huber/90b31a8f06b579833005ff5f0875ab96 to your computer and use it in GitHub Desktop.
Save P0huber/90b31a8f06b579833005ff5f0875ab96 to your computer and use it in GitHub Desktop.
Реализация таблицы умножения 10х10. Implementation of the multiplication table 10x10 on Java.
public static void Base (int a){ // The creating of the function: printing string ever 10 values.
for (int i = 1; i < 11; i++){ // The declaring of the cycle calculation of string values have been multiplying on the one particular number.
System.out.print(a * i + " "); // The printing of the result multiplication with a space.
}
}
public static void main(String[] args) {
int y = 1;
for (int x = 1; x < 11; x++){
Base(y); // Call the function
System.out.println(); // Next line
y++; // Increase of the variable value "y" for the calculation next line of values
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment