/** * IS184203C-Genap-2018/19 - In Class Week 04 * Name of Project : Loops * Student ID : 05211840000131 * Student Name : Belia Rida Syifa Fauzia * Class :c * Submission Date : 26-02-2019 */ /** * * NEVER DO 'COPY-PASTE' WHILE YOU ARE CODING * */ import java.util.Scanner; public class Loops { public static void main(String[] args) { Scanner input = new Scanner(System.in); int v = input.nextInt(); for (int i = 1; i<=5; i++) { for (int b = 0; b < i; b++) { System.out.print(i); } System.out.println();
} } } /** * DECLARATION OF ORIGINAL WORK * I, hereby declare that the code is my original work. * I have honored the principles of academic integrity and have upheld * ITS''s Student Code of Academic in the completion of this work. */