Skip to content

Instantly share code, notes, and snippets.

@PocasPedro
Created October 16, 2017 17:38
Show Gist options
  • Save PocasPedro/0bf8b02b8238e002d80c48ee7f805e59 to your computer and use it in GitHub Desktop.
Save PocasPedro/0bf8b02b8238e002d80c48ee7f805e59 to your computer and use it in GitHub Desktop.
Java Fundamentals For Kids - Exercise 11
/**
Program description
*/
public class SequenceWithInt {
public static void main(String[] args) {
int five = 5;
for(int i = 1 ; i <= 10 ; i++){
int temp = five * i;
Print(temp, i);
}
}
public static void Print (int numbertoprint, int multiplier){
System.out.println("5 multiplied by " + multiplier + " is " + numbertoprint);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment