Created
October 16, 2017 17:38
-
-
Save PocasPedro/0bf8b02b8238e002d80c48ee7f805e59 to your computer and use it in GitHub Desktop.
Java Fundamentals For Kids - Exercise 11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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