473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

solve the pyramid problem in java

1
*
* *
* * *
* * * *
Jun 23 '07 #1
3 2025
JosAH
11,448 Expert 8TB
*
* *
* * *
* * * *
We don't do your homework for you; we can help you though: shows us what
you have attempted so far and tell us where you got stuck; we might help you out.

kind regards,

Jos
Jun 24 '07 #2
r035198x
13,262 8TB
We don't do your homework for you; we can help you though: shows us what
you have attempted so far and tell us where you got stuck; we might help you out.

kind regards,

Jos
Jos, is this one of those where the shape is distorted too?
Jun 25 '07 #3
Hi,

Below is the code which displays your desired Pyramid output.

<Removed by Admin>
Cheers,
Sateesh.
Jun 25 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
8
by: virtualadepts | last post by:
I spent quite a bit of work trying to get this to format on google groups, so let me know if it needs explination. Basicly the tree sorts randomly, and can start from any number on the pyramid. ...
4
by: i m gr8 | last post by:
Hello, I need to make a pyramid 20 lines long showing Xs like this: X XX XXX XXXX and so on . I have made this code so far:
2
by: batool | last post by:
why when u use RandomAccessFile in jave under unix the follwing error appears? java.io.FileNotFoundException: /home/ola/Desktop/test.txt (No such file or directory) at...
5
by: Kahlia | last post by:
Hi. I am trying to print a pyramid of asterisks using recursion so that the recursive function takes in an integer and prints that number of lines of asterisks and then reverses, eg: * ...
1
by: rashee | last post by:
hello everybody, i want to print the pyramid of numbers in the following manner. 1 212 32123 4321234 and so on depending on the no of rows. plz help me out.
29
n8kindt
by: n8kindt | last post by:
hey guys, i'm using access 2007. i'm not happy with my solution to the following problem so i'm hoping one of you guys has a better idea. my solution would require use of multiple valued fields...
1
by: process | last post by:
http://projecteuler.net/index.php?section=problems&id=18 def recur(tree, pos): if not tree: return else: return ] + recur(tree, pos)] + \ ] + recur(tree, pos+1)]
2
by: Gn02 | last post by:
Hi im noob in JAVA could someone explain to me how to make this program for loop.. asterisk pyramid sideward .. plss answer me i want to learn it
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.