Created
May 14, 2020 08:33
-
-
Save Daniiarz/de210242e4108404cc62625a22e8e5a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class GroupC1 { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
int n = input.nextInt(); | |
for (int i = 1; i <= n; i++) { | |
for (int j = 1; j <= i; j++) { | |
if (j==i){ | |
System.out.println(j); | |
} | |
else { | |
System.out.print(j+","); | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment