Creating a Reverse Scalene Triangle Pattern in Java

Creating a Reverse Scalene Triangle Pattern in Java

Logic Used –> j=n-i –> j=n-i+1

Creating a Diamond Pattern in Java

Creating a Diamond Pattern in Java

Logic Used –> j=2*(n-i)+1 –> j=i

Java CheatSheet – This will be very handy while learning to code

Java CheatSheet – This will be very handy while learning to code

  Java Programming Cheatsheet   While learning to code in Java, As Java is the most popular language nowadays and the CheatSheet will be very handy which explains you the…

Creating a Common-Pointed 2 Triangle in Java

Creating a Common-Pointed 2 Triangle in Java

Logic Used –> j=2*(n-i)+1 –> j=n-i+1 –> j=2*i-1 –> j=n-i+1

Creating a Reverse of White-spaced Triangle in Java

Creating a Reverse of White-spaced Triangle in Java

Logic Used –> j=2*(n-i)+1 –> j=i

Creating a White-spaced Triangle using star in Java

Creating a White-spaced Triangle using star in Java

Logic Used –> j=i-1 –> j=2*(n-i)+1

Creating a White-spaced Triangle using star in Java

Creating a White-spaced Triangle using star in Java

Logic Used –> j=i-1 –> j=2*(n-i)+1

Creating a Simple Triangle of star in Java

Creating a Simple Triangle of star in Java

Logic Used Above, for –> j=2*i-1 & Lower, for –>  j=n-i

Creating a Boomerang Pattern/Shape in Java

Creating a Boomerang Pattern/Shape in Java

Logic Used –> n=n/2 –> j=i-1 –> j=i –> j=n-i –> j=n-i+1

Creating a White-Spaced Diamond Pattern in Java

Creating a White-Spaced Diamond Pattern in Java

Logic Used –> n=n/2 –> j=n-i+1 –> j=2*i-1 –> j=n-i+1 –> j=i –> j=2*(n-i)+1 –> j=i


1 2 3 6 7