+ Reply to Thread
Results 1 to 3 of 3

Thread: Program to print Pyramid

  1. #1
    satya5321 is offline Newbie
    Join Date
    Dec 2007
    Posts
    8
    Rep Power
    0

    Program to print Pyramid

    Code:
    /*
     * Created on Nov 6, 2007
     */
    
    /**
     * @author books4java.blogspot dot com
     *
     * Program to print Pyramid
     * 			     
     */
    
    
    
    	public class Pyramid {
    	static private int x=8;
    	static int z;
    	static{
    	z=2;
    	}
    
    	static class B2{
    	static int y=9;
    	void goB2(){
    	System.out.println(x+" "+y+" "+z);
    	}
    	}
    	}
    Last edited by v0id; 12-14-2007 at 06:28 AM. Reason: Remember the code-tags!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    Do you have any questions, or did you just want to show us the code you've made, though it doesn't print pyramids, as far as I can see.

  4. #3
    kelvo_link is offline Newbie
    Join Date
    Jun 2010
    Posts
    6
    Rep Power
    0

    Re: Program to print Pyramid

    not a pyramid



    its a striangle

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Screen Print Program
    By sol49 in forum General Programming
    Replies: 1
    Last Post: 10-23-2011, 04:55 PM
  2. Replies: 1
    Last Post: 04-11-2011, 04:48 AM
  3. Read from print to Program
    By Sov in forum C and C++
    Replies: 5
    Last Post: 05-16-2010, 11:46 AM
  4. Print pyramid number?
    By nitediver in forum C and C++
    Replies: 6
    Last Post: 10-17-2009, 08:07 PM
  5. print control program
    By mistyken in forum Java Help
    Replies: 2
    Last Post: 10-06-2008, 01:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts