Giter VIP home page Giter VIP logo

Comments (24)

pujanchangubhari73 avatar pujanchangubhari73 commented on July 30, 2024

package forpattern28;

/**
*

@author Pujan
*/
public class ForPattern28 {

/**

@param args the command line arguments
*/
public static void main(String[] args) {
char[] b = {'N', 'E', 'P', 'A', 'L'};

for (int i = 0; i <= b.length; i++) {

for (int a = 0; a <= i; a++) {

 System.out.printf(" ");

}
for (int j = i; j <= 4; j++) {

 System.out.print(b[j]);

}
System.out.printf("\n");
}
}

}

capture

from java.

jagdish4249 avatar jagdish4249 commented on July 30, 2024

package pattern16;

/**
*

  • @author jagdish
    */
    public class Pattern16 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here

      char[] country = {'N','E','P','A','L'};
      int l = country.length;
      for ( int i = l; i >= 1; i--) {
      int z = l-i;
      for ( int j = l; j >= 1 ; j--) {

           if(i<j){
               System.out.print(" ");   
           }  
           else{
               System.out.print(country[z]);
                 z++;
           }   
       }
      

      System.out.println("");
      }
      }

}

image

from java.

raBbn avatar raBbn commented on July 30, 2024

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pattern19;

/**
*

  • @author Kishorr
    */
    public class Pattern19 {

    /**
    *

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      char[] arr = {'N', 'E', 'P', 'A', 'L'};
      char[] arr1 = {'A', 'B', 'C', 'D'};
      for (int i = 0; i < 5; i++) {
      for (int j = 0; j < 5; j++) {
      if (j < i) {
      System.out.print(" ");
      } else {
      System.out.print(arr[j] + " ");
      }
      }

       System.out.println("");
      

      }
      capture16

    }

}

from java.

milan604 avatar milan604 commented on July 30, 2024

package pattern16;

/**
*

  • @author m-lan
    */
    public class Pattern16 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      char a[] = {'N', 'E', 'P', 'A', 'L'};
      int b = 0;
      for (int i = 1; i <= a.length; i++) {
      for (int j = 1; j <= i; j++) {
      System.out.printf(" ");
      }
      int c = b;
      for (int k = a.length; k >= i; k--) {
      System.out.printf("%c", a[c]);
      c++;

       }
       b ++;
       System.out.println("");
      

      }

    }

}
screenshot from 2017-07-27 15-06-23

from java.

sthaanu avatar sthaanu commented on July 30, 2024

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pattern19;

/**
*

  • @author admin
    */
    public class Pattern19 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      char[] a = {'N', 'E', 'P', 'A', 'L'};
      for (int i = 0; i < a.length; i++) {
      for (int j = 0; j < a.length; j++) {
      if (j >= i) {
      System.out.print(a[j]);
      } else {
      System.out.print(" ");
      }
      }
      System.out.println("");
      }
      }

}
capture

from java.

kiir33 avatar kiir33 commented on July 30, 2024

System.out.println("Pattern 19\n----------------------");
for (i = 0; i < N; i++) {
for (j = 0; j < N; j++) {
if (j < i) {
System.out.print("\t");
} else {
System.out.print(nep[j] + "\t");
}
}

        System.out.println("");
    }

Output:
capture

from java.

karmi214 avatar karmi214 commented on July 30, 2024

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pattern19;

/**
*

  • @author Anish
    */
    public class Pattern19 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      char[] v = {'N', 'E', 'P', 'A', 'L', 'I'};
      for (int i = 0; i < v.length; i++) {
      for (int j = 0; j < v.length; j++) {
      if (j >= i) {
      System.out.print(v[j]);
      } else {
      System.out.print(" ");
      }
      }
      System.out.println("");
      }

    }

}
p19

from java.

kajalmaharjan avatar kajalmaharjan commented on July 30, 2024

//PATTERN 20
char[] n4 = {'N', 'E', 'P', 'A', 'L'};
for (int i = 0; i < n4.length; i++) {
for (int j = 0; j < i; j++) {
System.out.print(" ");
}
for (int k = i; k < n4.length; k++) {
System.out.print(n4[k]);
}
System.out.println("");
}
image

from java.

 avatar commented on July 30, 2024

package pattern22;

/**
*

  • @author Samikshya
    */
    public class Pattern22 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      char n[] = {'N', 'E', 'P', 'A', 'L'};
      for (int i = 0; i < 5; i++) {
      for (int j = 0; j < i; j++) {
      System.out.print(" ");

       }
       for (int k = i; k < 5; k++) {
           System.out.print(n[k]);
      
       }
       System.out.println("");
      

      }

    }
    }
    capture

from java.

syslin avatar syslin commented on July 30, 2024

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package paterrn;

/**
*

  • @author dell
    */
    public class Paterrn {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      char[] a = {'N', 'E', 'P', 'A', 'L'};
      System.out.println("pattern 20");
      for (int i = 0; i < a.length; i++) {
      for (int j = 0; j < a.length; j++) {
      if (j >= i) {
      System.out.print(a[j]);
      } else {
      System.out.print(" ");
      }
      }
      System.out.println(" ");

      }

    }
    }
    output
    20

from java.

RakenShahi avatar RakenShahi commented on July 30, 2024

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package q17;

/**
*

  • @author DELL
    */
    public class Q17 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      int b = 5;

      char[] a = {'N', 'E', 'P', 'A', 'L'};
      for (int i = 0; i <= 4; i++) {

       for (int k = 0; k < i; k++) {
           System.out.printf(" ");
       }
      
       for (int j = i; j < b; j++) {
      
           System.out.printf("%c", a[j]);
      
       }
      
       System.out.print("\n");
      

      }

    }

}

OUTPUT
17

from java.

Roshantwanabasu avatar Roshantwanabasu commented on July 30, 2024

Code:
/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pattern19;

/**
*

  • @author NiiRosh
    */
    public class Pattern19 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      char[] nep = {'N', 'E', 'P', 'A', 'L'};
      for (int i = 0; i < nep.length; i++) {
      for (int j = 0; j < nep.length; j++) {
      if (j < i) {
      System.out.print(" ");
      } else {
      System.out.print(nep[j]);
      }
      }

       System.out.println("");
      

      }
      }

}

Output:
pattern19

from java.

leoprabin10 avatar leoprabin10 commented on July 30, 2024
    System.out.println("\n\n\n");
    for (int i = 0; i < n.length; i++) {
        for (int j = 1; j < i + 1; j++) {
            System.out.print("  ");
        }

        for (int k = 1; k <= n.length - i; k++) {

            System.out.print(n[k - 1] + " ");
        }

        System.out.println();
    }

// TODO code application logic here
}
p16

from java.

rabina12 avatar rabina12 commented on July 30, 2024
  • @author Albina Praz
    */
    public class P16 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here

      char[] a = {'N', 'E', 'P', 'A', 'L'};
      for (int i = 0; i < a.length; i++) {
      for (int j = 0; j < a.length; j++) {
      if (j >= i) {
      System.out.print(a[j]);
      } else {
      System.out.print(" ");
      }
      }
      System.out.println("");
      }
      }
      }
      pt16

from java.

rivab avatar rivab commented on July 30, 2024

char[] a = {'E', 'A', 'R', 'T', 'H', 'Q', 'U', 'A', 'K', 'E'};
System.out.println("Output of Q.No.20");
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < i; j++) {
System.out.print(" ");
}
for (int k = 0; k < a.length - i; k++) {
System.out.print(a[k + i]);
}
System.out.println(" ");
}

20

from java.

bsnarnzt1 avatar bsnarnzt1 commented on July 30, 2024

package patternten9;

/**
*

  • @author User
    */
    public class PatternTen9 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      char[] a = {'N', 'E', 'P', 'A', 'L'};
      for (int i = 0; i < a.length; i++) {
      for (int j = 0; j < a.length; j++) {
      if (j >= i) {
      System.out.print(a[j]);
      }
      else {
      System.out.print(" ");
      }
      }
      System.out.println(" ");
      }
      }
      }
      patt19

from java.

Sudan15423 avatar Sudan15423 commented on July 30, 2024

for (int i = 0; i <= a.length - 1; i++) {
for (int j = 1; j <= i; j++) {
System.out.print(" ");
}
for (int j = i; j <= a.length - 1; j++) {
System.out.print(a[j]);
}
System.out.println();
}
}
Output:
19

from java.

ajay987 avatar ajay987 commented on July 30, 2024

char[] a = {'N', 'E', 'P', 'A', 'L'};
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < i; j++) {
System.out.print(" ");
}
for (int k = i; k < a.length; k++) {

            System.out.print(a[k]);
        }
        System.out.println();
    }

patt19sol

from java.

rituratnam avatar rituratnam commented on July 30, 2024

CODE:
package patternnepal;

/**
*

  • @author Lavalesh
    */
    public class PatternNepal {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      char[] a = {'N', 'E', 'P', 'A', 'L'};
      for (int i = 0; i < a.length; i++) {
      for (int j = 0; j < i; j++) {
      System.out.print(" ");
      }
      for (int k = 0; k < a.length - i; k++) {
      System.out.print(a[k + i]);
      }
      System.out.println(" ");
      }
      }
      }
      Output:
      pattern19

from java.

duwalshraddha avatar duwalshraddha commented on July 30, 2024

Code
package pattern17;

/**
*

  • @author Lenovo
    */
    public class Pattern17 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      char[] x = {'N', 'E', 'P', 'A', 'L'};
      for (int i = 0; i <= x.length - 1; i++) {
      for (int j = 1; j <= i; j++) {
      System.out.print(" ");
      }
      for (int j = i; j <= x.length - 1; j++) {
      System.out.print(x[j]);
      }
      System.out.println();
      }
      }
      }
      18

from java.

Rajjushrestha avatar Rajjushrestha commented on July 30, 2024

public static void main(String[] args) {
char a[] = {'N', 'E', 'P', 'A', 'L'};
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < i; j++) {
System.out.print(" ");
}
for (int k = i; k < a.length; k++) {
System.out.print(a[k]);
}

        System.out.print("\n");
    }

19

from java.

sarumdr avatar sarumdr commented on July 30, 2024

/**
*

@author sarumdr
*/
public class Pattern19 {

/**

@param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
char[] v = {'N', 'E', 'P', 'A', 'L', 'I'};
for (int i = 0; i < v.length; i++) {
for (int j = 0; j < v.length; j++) {
if (j >= i) {
System.out.print(v[j]);
} else {
System.out.print(" ");
}
}
System.out.println("");
}
}

}

OUTPUT
image

from java.

SusanCB avatar SusanCB commented on July 30, 2024

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pat17;

/**
*

  • @author nissus
    */
    public class Pat17 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      char[] a = {'N', 'E', 'P', 'A', 'L'};

      for (int i = 0; i <= a.length; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.print(" ");
      }
      for (int j = i; j < a.length; j++) {
      System.out.print(a[j]);
      }
      System.out.println(" ");
      }
      // TODO code application logic here
      }

}
pat17

from java.

sanzeevtamang avatar sanzeevtamang commented on July 30, 2024

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package patternp;

/**
*

  • @author Eev
    */
    public class PatternP {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      char[] a = {'N', 'E', 'P', 'A', 'L'};
      for (int i = 0; i < a.length; i++) {
      for (int j = 0; j < a.length; j++) {
      if (j >= i) {
      System.out.print(a[j]);
      } else {
      System.out.print(" ");
      }
      }
      System.out.println(" ");

      }
      }

}

image

from java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.