Showing posts with label pattern. Show all posts
Showing posts with label pattern. Show all posts

Sunday, August 14, 2016

Best Application to learn Difference Programming Languages Fast


App Name: Programming Hub
Package Name: com.freeit.java
Category: Education
Developer : Nexino Labs Pvt Ltd
Version: 3.0.6
Publish Date: July 30, 2016
File Size: Undefined
Installs: 1,000,000 - 5,000,000
Requires Android: 4.1 and up
Content Rating: Everyone
Developer: Visit website Email contactus@prghub.com


This is the best Application for me to Learn 18+ Programming languages such as Python, Assembly, HTML, VB.NET, C, C++, C# (CSharp), JavaScript, PHP, Ruby, R Programming, CSS, Java programming and much more! The new UI is quite interesting with new Material Design include the built-in playground where you can test your code in one app :D

With this app, i think is fastest way to learn any programming language by referring ready made programs and theory created by programming experts. Just download the language you want to learn or just request to the developer on what language you want or solutions.

Have an exam tomorrow?? :D No worries! By this app, forget your 600 page textbooks! Simply read this app essential and very precise reference material to score awesome marks!

Below is the Screenshot of this lastest app





Sunday, September 20, 2015

Sierpinski Triangles

The Sierpinski triangle (also with the original orthography SierpiƄski), also called the Sierpinski gasket or the Sierpinski Sieve, is a fractal and attractive fixed set with the overall shape of an equilateral triangle, subdivided recursively into smaller equilateral triangles.

The concept of the Sierpinski triangle is very simple:
  • Take a triangle
  • Create four triangles out of that one by connecting the centers of each side
  • Cut out the middle triangle
  • Repeat the process with the remaining triangles
The Sierpinsky Triangle is a fractal created by taking a triangle, decreasing the height and width by 1/2, creating 3 copies of the resulting triangle, and place them such each triangle touches the other two on a corner. This process is repeated over and over again with the resulting triangles to produce the Sierpinski triangle, as illustrated below.

Monday, September 7, 2015

Triangle Pattern


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
public static void main(String []args){
        int num = 6;
        
        for(int x=0;x<num;x++){
            for(int y=0;y<(num-x-1);y++){
                System.out.print(" ");
            }
            for(int z=0;z<=x;z++){
                System.out.print("*");
                for(int a=0;a<z;a = a+z){
                    System.out.print("*");
                }
            }
            System.out.println();
        }
     }

Saturday, September 5, 2015

Christmas Tree Pattern

Write code that output a Christmas tree pattern

Output:
     *    
     *    
    ***    
     *     
    ***    
   *****   
     *     
    ***     
   *****    
  *******  


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
public class HelloWorld{

     public static void main(String []args){
        int max=10; // height
        
        for(int x=0;x<max;x++){
            for(int y=0;y<x+1;y++){
                for(int z=0;z<max-y-1;z++){
                    System.out.print(" ");
                }
                for(int z=0;z<(y*2)+1;z++){
                    System.out.print("*");
                }
                
                System.out.println();
            }
        }
     }
}