Skip to content

Commit

Permalink
1 to N
Browse files Browse the repository at this point in the history
  • Loading branch information
SE-MahmoudAbdelaal committed May 24, 2024
1 parent 272ed12 commit 0716679
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CodeForces/Sheet #2 (Loops)/A.1 to N/Solution.java
Original file line number Diff line number Diff line change
@@ -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);

}
}
}

0 comments on commit 0716679

Please sign in to comment.