Skip to content

Commit

Permalink
feat(4.1.5): Finish U4_L1_5_Activity_One
Browse files Browse the repository at this point in the history
  • Loading branch information
101zh committed Oct 25, 2023
1 parent fb93fc4 commit a8c6630
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/java/Unit4/U4_L1_5_Activity_One.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Lesson 1 1/2 Coding Activity Question 1 */
package Unit4;

import java.util.Scanner;

public class U4_L1_5_Activity_One
{
public static void main(String[] args)
{

Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
int fac = 1;
while(fac <= 5){
System.out.println(num*fac);
fac++;
}

scan.close();
}
}

0 comments on commit a8c6630

Please sign in to comment.