Search:

Type: Posts; User: me1010109

Search: Search took 0.21 seconds.

  1. Replies
    2
    Views
    9,064

    Re: Loop Patterns (triangles) [Beginner]

    import java.util.Scanner;
    public class Triangles {

    public static void main(String[] args) {
    Scanner keyboard = new Scanner(System.in);

    int pattern;

    ...
  2. Replies
    2
    Views
    9,064

    Loop Patterns (triangles) [Beginner]

    Write a Java program that prints one of the following patterns based on the user request:
    For an odd number of rows each pattern would look as follows (in this case 5 rows)
    54321
    5432 ...
Results 1 to 2 of 2