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

CSS Shapes Collection 1

CSS Shapes Collection 1

  VIEW DEMO   DOWNLOAD SOURCE Hey! Wass up! friends.Today we are going towards the new tutorial which is from the Collections (This is the very first tutorial of our “Collection” Series)….

Creating a 3 in 1 Triangle Pattern in Java

Creating a 3 in 1 Triangle Pattern in Java

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

Creating a Right Pointer Pattern of Star in Java

Creating a Right Pointer Pattern of Star in Java

Logic Used –> n– (to make it odd) –> n=(n/2)+1 –> j=i –> j=n-i


1 2 6 7