Giter VIP home page Giter VIP logo

Comments (26)

milan604 avatar milan604 commented on July 30, 2024

package pattern11;

/**
*

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

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      int a=0;
      for (int i = 0; i < 5; i++) {

       for (int j = 0; j < i; j++) {
           System.out.printf("%d",a-1);
           
       }
       a++;
       System.out.println("");
      

      }
      }

}

screenshot from 2017-07-27 14-31-37

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 javaapplication18;

/**
*

  • @author Kishorr
    */
    public class JavaApplication18 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.printf(""+i+" ");
      }
      System.out.println("");
      }
      }

}
capture11

from java.

jagdish4249 avatar jagdish4249 commented on July 30, 2024

package pattern12;

/**
*

  • @author jagdish
    */
    public class Pattern12 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      int x = 0;
      for (int i = 1; i <= 4; i++) {
      for (int j =1 ; j <= i ; j++) {
      System.out.print(x);
      }
      x++;
      System.out.println();
      }
      }

}

image

from java.

pujanchangubhari73 avatar pujanchangubhari73 commented on July 30, 2024

package forpattern3;

/**
*

  • @author Balkrsihna
    */
    public class ForPattern3 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      int a = 0, n = 4;
      for (int i = 1; i <= n; i++) {

       for (int j = 1; j <= i; j++) {
      
           System.out.printf("%d", a);
      
       }
       System.out.println("");
       a++;
      

      }
      }

}

image

from java.

maheshyakami avatar maheshyakami 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 pattern;

/**
*

  • @author mahesh
    */
    public class Pattern {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      int b = 0;
      for (int i = 5; i > 0; i--) {
      for (int j = 5; j >= i; j--) {
      System.out.print(b);
      }
      System.out.println(" ");
      b++;
      }
      System.out.println();
      }

}
screen shot 2017-07-27 at 5 19 50 pm

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 pattern8;

/**
*

  • @author admin
    */
    public class Pattern8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j <= i; j++) {

           System.out.print(i);
      
           System.out.print("\t");
      
       }
      
       System.out.println(" ");
      

      }

    }

}
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 pattern8;

/**
*

  • @author Anish
    */
    public class Pattern8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j < i + 1; j++) {
      System.out.print(i + " ");
      }
      System.out.println("");
      }
      }

}
p8

from java.

sajanbasnet75 avatar sajanbasnet75 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 assignment2;
/*
*

@author LORDsajan
*/
public class Assignment2 {

/**

@param args the command line arguments
/
public static void main(String[] args) {
// pattern8
System.out.println("\nPattern8");
int z = -2;
for (int i = 1; i <= 5; i++) {
z++;
for (int j = 1; j < i; j++) {
System.out.print(z + " ");
}
System.out.println(" ");
}
}
}

8

from java.

kiir33 avatar kiir33 commented on July 30, 2024

System.out.println("\nPattern 11\n----------------------");
for (i = 0; i < 5; i++) {
for (j = 0; j <= i; j++) {
System.out.print(i + "\t");
}
System.out.println("");
}

Output:
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 patterntwo;

/**
*

  • @author dell
    */
    public class PatternEight {

    public static void main(String[] args) {
    int x = 0;
    for (int i = 0; i < 5; i++) {
    for (int j = 0; j <= i; j++) {
    System.out.printf("%d", x);

         }
         x++;
         System.out.println();
    
     }
    

    }

}
output
13

from java.

bsnarnzt1 avatar bsnarnzt1 commented on July 30, 2024

package patt8;

/**
*

  • @author User
    */
    public class Patt8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i <=3; i++) {
      for (int j = 0; j <=i; j++) {
      System.out.print(i);
      }
      System.out.println(" ");
      }
      }
      Output:
      patt8

from java.

kajalmaharjan avatar kajalmaharjan commented on July 30, 2024
    //PATTERN 10
    int c = 1;
    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 5; j++) {
            if (i >= j) {
                System.out.printf("%d ", i);
                c++;
            }
        }
        System.out.printf("\n");
    }

image

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 q11;

/**
*

  • @author DELL
    */
    public class Q11 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      int a=1;
      for (int i = 0; i <=3; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.print(i);
      a++;

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

      }
      }

}

OUTPUT
11

from java.

rabina12 avatar rabina12 commented on July 30, 2024

package p11;

/**
*

  • @author Albina Praz
    */
    public class P11 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j <= i; j++) {

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

      }

    }

}
p11

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 pattern14;

/**
*

  • @author NiiRosh
    */
    public class Pattern14 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      int k = 0;
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.printf("%d", k);

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

      }
      }

}

Output:
pattern14

from java.

rivab avatar rivab commented on July 30, 2024

package star8;

/**
*

  • @author DELL
    */
    public class Star8 {

    /**

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

      // TODO code application logic here

      for (int i = 0; i < 5; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.print(i);

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

      }
      }

}
star8

from java.

duwalshraddha avatar duwalshraddha commented on July 30, 2024

Code
package pattern11;

/**
*

  • @author Lenovo
    */
    public class Pattern11 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      for (int i = 0; i < 5; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.print(i);
      }
      System.out.println("");
      }
      }

}
11

from java.

Roshanshrestha7 avatar Roshanshrestha7 commented on July 30, 2024

public class Ass9 {

/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
    int a = 0;
    for (int i = 0; i < 5; i++) {
        for (int j = 0; j < i + 1; j++) {
            System.out.printf("%d", a);
        }
        System.out.println("");
        a++;
    }

// TODO code application logic here
}

}
image

from java.

Sudan15423 avatar Sudan15423 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 day3;

/**
*

  • @author dragon15423
    */
    public class Day3 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i < 5; i++) {
      for (int j = 0; j < i; j++) {
      System.out.print(i - 1);
      }
      System.out.println();
      }
      }
      Output:
      8

from java.

ajay987 avatar ajay987 commented on July 30, 2024

for (int i = 0; i < 4; i++) {
for (int j = 0; j <=i; j++) {
System.out.print(i);
}
System.out.println();
}
patt14sol

from java.

rituratnam avatar rituratnam commented on July 30, 2024

CODE:
package pattern8a;

/**
*

  • @author Lavalesh
    */
    public class Pattern8a {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.printf(""+i+" ");
      }
      System.out.println("");
      }
      }
      }
      Output:
      pattern8a

from java.

Rajjushrestha avatar Rajjushrestha commented on July 30, 2024

public static void main(String[] args) {
for (int i = 0; i < 4; i++) {
for (int j = 0; j < i + 1; j++) {
System.out.print(i);
System.out.print("\t");

        }
        System.out.println("");

    }

14

from java.

sarumdr avatar sarumdr 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 pattern8;

/**
*

  • @author sarumdr
    */
    public class Pattern8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      for (int i = 0; i <=3; i++) {
      for (int j = 0; j<=i; j++) {
      System.out.print(i);
      }
      System.out.printf("\n");
      }
      }

}

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 pat11;

/**
*

  • @author nissus
    */
    public class Pat11 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i <=3; i++) {
      for (int j = 0; j < i+1; j++) {
      System.out.print(i);
      }
      System.out.println("");
      }
      // TODO code application logic here
      }

}
pat11

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 pattern8;

/**
*

  • @author Eev
    */
    public class PatterN8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      int x=0;
      for(int i=1; i<=5; i++)
      {
      for(int j=1;j<=i; j++)
      {
      System.out.printf("%d",x);

      }
      x++;
      System.out.println();

    }
    }

}
image

from java.

luckydivya avatar luckydivya commented on July 30, 2024

package pattern3;

/**
*

  • @author PC
    */
    public class Pattern3 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i <= 3; i++) {
      for (int j = 1; j <= i + 1; j++) {
      System.out.print(i);

       }
       System.out.println("");
      

      }
      }
      output

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.