From 0716679a5314c71122c33d4e645a608f88e71690 Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelaal Date: Fri, 24 May 2024 21:42:22 +0300 Subject: [PATCH] 1 to N --- .../Sheet #2 (Loops)/A.1 to N/Solution.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 CodeForces/Sheet #2 (Loops)/A.1 to N/Solution.java diff --git a/CodeForces/Sheet #2 (Loops)/A.1 to N/Solution.java b/CodeForces/Sheet #2 (Loops)/A.1 to N/Solution.java new file mode 100644 index 0000000..1fcea43 --- /dev/null +++ b/CodeForces/Sheet #2 (Loops)/A.1 to N/Solution.java @@ -0,0 +1,16 @@ +import java.util.Scanner; + +/** + * Solution + */ +public class Solution { + + public static void main(String[] args) { + Scanner scanner=new Scanner(System.in); + int iterateNumber=scanner.nextInt(); + for (int i = 1; i <= iterateNumber; i++) { + System.out.println(i); + + } + } +} \ No newline at end of file