Find Jobs
Hire Freelancers

Build a pyramid

$10-30 USD

Completed
Posted over 7 years ago

$10-30 USD

Paid on delivery
Your program is required to read a single line of input from the user (without printing any input prompt), which is expected to be a positive integer n. You can freely assume this will be a positive integer, and it's not important what you do in any other case; we'll only test your program with positive integer input. You can also freely assume that n will not be greater than 999. After reading the input, your program will print a block pyramid of size n. The bottom level of the pyramid will be n blocks wide, the level just above that will be n − 1 blocks wide, and so on, with the top level consisting of a single block. Each level's blocks are centered with respect to the blocks on the level below. The precise format is best demonstrated with an example. If the input to the program was 3, the output would look like this: See attached image. A few additional requirements apply: - Though I've indented the text above to set it apart from the rest of this project write-up, note that the bottom level of blocks must begin in the leftmost column of the output (i.e., it should not be indented). - There must be no spaces after the last * character on each line. - There must be a newline character on the end of each line, including the last one.
Project ID: 11692003

About the project

17 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I have your program already done. Can deliver as soon as you accept the offer. My price is also as low as possible.
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0
17 freelancers are bidding on average $16 USD for this job
User Avatar
Hello. It is easy task, can be completed in couple of hours.
$10 USD in 1 day
4.9 (750 reviews)
7.0
7.0
User Avatar
Hello, I am expert in java/c/c++ and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first check your work then release the payments. Pm me for further details. Thank You!
$20 USD in 1 day
5.0 (44 reviews)
4.6
4.6
User Avatar
Hi i'm software engineer and expert c++ developer. I can do this project. Please contact me if you would like to get it done. Regards Usman Shery
$10 USD in 1 day
5.0 (15 reviews)
4.3
4.3
User Avatar
Hello My name is Ahmed, i'm a top rated freelancer. i worked over 250 projects and over 600 hours doing C++ and Java projects. small overview of feedback on my profile "you want to get your projects completed with quality? Hire Ahmed. Highly recommended." "Thoroughly satisfied with Ahmed, and would recommend him for anyone looking for an excellent developer!" "Highly recommended. Very smart and well experience" looking forward to work with you Regards
$15 USD in 1 day
5.0 (16 reviews)
3.5
3.5
User Avatar
I am strong C++ developer and have strong algorithm knowledge. I assure you great quality work and within 1 day. I am open to any further improvements to the deliverable. Please hire me!
$20 USD in 1 day
5.0 (4 reviews)
3.1
3.1
User Avatar
Hi my whats app +923245064587 .............................................................................................................................................
$72 USD in 1 day
5.0 (1 review)
2.8
2.8
User Avatar
I'm computer engineering TA with 10+ years of experience. I'm experienced with data structures and algorithms , computation theory , discrete math and competitive programming I will solve all your problems perfectly in short amount of time and could help you understanding them
$25 USD in 1 day
5.0 (6 reviews)
2.6
2.6
User Avatar
hello sir,I have done this type of code earlier and I can deliver you a very efficient code
$15 USD in 0 day
5.0 (5 reviews)
1.7
1.7
User Avatar
I have participated in programming competition (ACM-ICPC,codeforces,topcoder). My language of choice is C ++ it is easy for me.
$15 USD in 0 day
5.0 (2 reviews)
1.2
1.2
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I can start working on the program right away and finish it in a timely manner. And yes, I did check the attached image too. Cheers
$17 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Dear Sir/Madam, Hope you will be doing good today. I have strong experience in development in C language. I already have a program written to display pyramid blocks. I can modify it to meet your requirements. I need to understand one thing. Based on your example of input 3, there should be only 2 rows. The bottom one containing 3 asterisks and upper one with only 1 asterisk. But your output is different. Can you please elaborate more on this? I can provide you the code immediately. I look forward to hearing from you soon. Best Regards, Arsalan Mansoor.
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I write programs with an intention of creating an art. I treat every program i write as piece of gem, i polish it in every aspect, make sure bugs free and it should never break in any time.
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
gardena, United States
5.0
28
Payment method verified
Member since Oct 31, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.