User talk:Joshi1983

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Welcome!

Hello, Joshi1983, and welcome to Wikipedia! Thank you for your contributions. I hope you like the place and decide to stay. Here are some pages that you might find helpful:

I hope you enjoy editing here and being a Wikipedian! Please sign your messages on discussion pages using four tildes (~~~~); this will automatically insert your username and the date. If you need help, check out Wikipedia:Questions, ask me on my talk page, or ask your question on this page and then place {{helpme}} before the question. Again, welcome! --Ysangkok (talk) 00:37, 16 April 2009 (UTC)[reply]

February 2012[edit]

Welcome to Wikipedia. Although everyone is welcome to contribute to the encyclopedia, one or more of the external links you added to the page Prime number do not comply with our guidelines for external links and have been removed. Wikipedia is not a collection of links; nor should it be used as a platform for advertising or promotion, and doing so is contrary to the goals of this project. Because Wikipedia uses nofollow tags, external links do not alter search engine rankings. If you feel the link should be added to the article, please discuss it on the article's talk page before reinserting it. Please take a look at the welcome page to learn more about contributing constructively to this encyclopedia. Thank you. JohnBlackburnewordsdeeds 00:43, 17 February 2012 (UTC)[reply]

Sierpinski Carpet Code[edit]

The code I posted works more efficiently, doesn't use trivial parameters, and is easier to understand. I don't know what you did to cause it to not work because I have been using it to generate fractal patterns. — Preceding unsigned comment added by 206.180.152.247 (talk) 05:11, 11 April 2012 (UTC)[reply]

Here's a code you can copy and paste into java to prove that it works.


public class Test {

   public static boolean fill(int x,int y)
   {
       while(x>0&&y>0)
       {
           if(x%3==1&&y%3==1)
               return false;
           x/=3;
           y/=3;
       }
       return true;
   }
   
   public static void main(String[] args)
   {
       for(int i=0;i<27;i++)
       {
           for(int j=0;j<27;j++)
               if(fill(i,j))
                   System.out.print("█");
               else
                   System.out.print("░");
           System.out.println();
       }
   }

}