20 Comments

  1. Shreyashi Mukherjee

    I
    IC
    ICS
    ICSE

    Reply
  2. google user

    how to print
    Y
    PY
    PPY
    APPY
    HAPPY

    Reply
  3. yankho

    how can I make star patterns of letters ..E.g “ABBA”

    Reply
  4. Sai Sarvani

    I need the output :10 20 30 40
    20 30 40 10
    30 40 10 20
    40 10 20 30

    Reply
  5. oumar

    hello could u helps me out ….
    this pattrn

    11
    2112
    321123
    43211234

    Reply
  6. dhanu

    how to print
    ******
    ** **
    * *
    ** **
    ******

    Reply
  7. kanimozhi m

    1 2 3 2 1 0
    4 3
    5 6 7 6 5 4

    8*9*9*8*7 please solve this problem

    Reply
  8. vicky

    How to print this pattern
    1
    24
    135
    2468
    13579
    Guys

    Reply
    • balaji

      public class MyClass {
      public static void main(String args[]) {
      int i=1;
      int m=2;
      for (int j=1; j<=5; j++){
      int l=m;
      int p=i;
      for (int k=1; k<=j; k++){

      if ((j%2)==0){
      System.out.print(l);
      l=l+2;
      }
      if ((j%2)==1){
      System.out.print (p);
      p=p+2;
      }
      }
      System.out.println();
      }

      }
      }

      Reply
  9. Biswajit Sahu

    L
    LO
    LOT
    LOTU
    LOTUS
    PLS slove this problem

    Reply
  10. Shiv

    ABCDEFGFEDCBA
    ABCDEF FEDCBA
    ABCDE EDCBA
    ABCD DCBA
    ABC CBA
    AB BA
    A A

    Reply
  11. siva

    ABCDE
    ABCD
    ABCD
    ABC
    AB
    A

    Reply
    • Max

      AAAAA
      ABBBB
      ABCCC
      ABCDD
      ABCDE

      Reply

Leave a Reply