From e938761e53eb624a2041104001f1098825b24b8f Mon Sep 17 00:00:00 2001 From: vinamra-iosd-dtu <31132536+vinamra-iosd-dtu@users.noreply.github.com> Date: Tue, 31 Oct 2017 19:10:15 +0530 Subject: [PATCH] Create Staircase.java --- Solutions to Known Problems/Staircase.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Solutions to Known Problems/Staircase.java diff --git a/Solutions to Known Problems/Staircase.java b/Solutions to Known Problems/Staircase.java new file mode 100644 index 0000000..50d267a --- /dev/null +++ b/Solutions to Known Problems/Staircase.java @@ -0,0 +1,22 @@ +/*https://www.hackerrank.com/challenges/staircase/problem**/ +import java.io.*; +import java.util.*; +import java.text.*; +import java.math.*; +import java.util.regex.*; + +public class Solution { + + public static void main(String[] args) { + Scanner in = new Scanner(System.in); + int n = in.nextInt(); + for (int i=0;i