Results 1 to 3 of 3

Thread: Help for a Program

  1. #1
    Join Date
    Jun 2009
    Posts
    96
    Rep Power
    3

    Default Help for a Program

    Hello,

    We have to make a trade in Algo and the statement is as follows:
    Building a pyramid star line through the center (a real) music.

    Here is what I have done:

    Code:
    1.	/ / Program used to display a pyramid star in a chosen height, using procedures or functions.
    2.	
    3.	# include <iostream>
    4.	using namespace std;
    5.	
    6.	int main ()
    7.	(
    8.	int nbEtoile, spaceFill i. hPyramide, j;
    9.	char answer;
    10.	
    11.	do
    12.	(
    13.	do
    14.	(
    15.	court << "Enter the height of the pyramid";
    16.	cin>> hPyramide;
    17.	)
    18.	while (hPyramide <= 1);
    19.	for (i = 1; i <= hPyramide; i + +)
    20.	(
    21.	spaceFill hPyramide =-i;
    22.	for (i = 1; i <= spaceFill; i + +)
    23.	(
    24.	court << '';
    25.	)
    26.	nbEtoile = 2 * i-1;
    27.	for (j = 1 j <= nbEtoile j + +)
    28.	(
    29.	cost <<'*';
    30.	)
    31.	court << "\ n";
    32.	)
    33.	
    34.	court << "yet? y / n";
    35.	cin>> answer;
    36.	)
    37.	while (answer == 'o');38.	)
    But that does not work!

    If someone could help me in passing.

  2. #2
    Fred Bopara is offline Member
    Join Date
    Jun 2009
    Posts
    90
    Rep Power
    3

    Default

    seeking a little on this forum or that of C, it has already been addressed in detail. In their discussion, they are triangles!

  3. #3
    Join Date
    Jun 2009
    Posts
    89
    Rep Power
    3

    Default

    See if any issue lower triangle c + +. Is not it?

Similar Threads

  1. Need the Best Program
    By Davisricky in forum Programming
    Replies: 1
    Last Post: 02-23-2010, 01:07 PM
  2. C++ program
    By PerrySullivan in forum Programming
    Replies: 1
    Last Post: 01-27-2010, 02:45 PM
  3. What to Look for in a CRM Program
    By niks54 in forum Software Jargons
    Replies: 0
    Last Post: 12-14-2009, 05:57 PM
  4. Invitation to url via a program in C++
    By Aaron Ruell in forum Programming
    Replies: 4
    Last Post: 10-27-2009, 10:25 AM
  5. Using several web communities in one program
    By Easton Fletcher in forum General Internet Terms
    Replies: 1
    Last Post: 07-14-2009, 07:21 AM

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
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48