8 Replies - 7098 Views - Last Post: 04 June 2009 - 03:12 PM Rate Topic: -----

#1 schiranjeevi2007  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 03-June 09

Creating Triangle Patterns

Posted 03 June 2009 - 10:15 AM

i want the out put as shown below....

*
* * *
* * * * *
* * * * * * *

how can i get...i wan this urgently...either in C or c++

This post has been edited by schiranjeevi2007: 03 June 2009 - 10:17 AM

Is This A Good Question/Topic? 0
  • +

Replies To: Creating Triangle Patterns

#2 computerfox  Icon User is offline

  • straight vegetarian kid

Reputation: 50
  • View blog
  • Posts: 3,772
  • Joined: 29-January 09

Re: Creating Triangle Patterns

Posted 03 June 2009 - 10:18 AM

yay! i got to this first :D

rule 1: please be polite. this isn't a drive through window.
rule 2:

void yourAnswer(){
while(0==0){
cout<<"I'm sorry, but we do not do your homework for you here...\";
cout<<"We only help with code presented...\n";
cout<<"Please edit your post with your code...\n";
cout<<"And again, please be polite...\n";
cout<<"Thank you...\n";
}
return;
}



there's an A+++++++ worthy code. :)
Was This Post Helpful? 0
  • +
  • -

#3 Smurphy  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 35
  • View blog
  • Posts: 367
  • Joined: 07-July 08

Re: Creating Triangle Patterns

Posted 03 June 2009 - 10:19 AM

We "WILL NOT DO YOUR HOME WORK". Dream in Code Has a policy where we like to see a good faith effort on your part. Although I will give you a hint Loops ;)

Dam at the same time fox. Although yours was much better.
Was This Post Helpful? 0
  • +
  • -

#4 computerfox  Icon User is offline

  • straight vegetarian kid

Reputation: 50
  • View blog
  • Posts: 3,772
  • Joined: 29-January 09

Re: Creating Triangle Patterns

Posted 03 June 2009 - 10:25 AM

it's my natural ability to be sarcastic and cynical and at the same time my passion for programming. time-wise...i have no idea, i guess someone up there really does like me. *knocks on wood*
Was This Post Helpful? 0
  • +
  • -

#5 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: Creating Triangle Patterns

Posted 03 June 2009 - 10:25 AM

Changed Topic Title to be more descriptive.

You can read this tutorial to learn how to create triangle patterns. It's written for VB6 but the concepts remain the same for C++.

:)
Was This Post Helpful? 0
  • +
  • -

#6 prabh  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 3
  • View blog
  • Posts: 381
  • Joined: 27-December 08

Re: Creating Triangle Patterns

Posted 03 June 2009 - 10:29 AM

View Postschiranjeevi2007, on 3 Jun, 2009 - 09:15 AM, said:

i want the out put as shown below....

*
* * *
* * * * *
* * * * * * *

how can i get...i wan this urgently...either in C or c++

it is simple
Was This Post Helpful? 0
  • +
  • -

#7 computerfox  Icon User is offline

  • straight vegetarian kid

Reputation: 50
  • View blog
  • Posts: 3,772
  • Joined: 29-January 09

Re: Creating Triangle Patterns

Posted 03 June 2009 - 10:30 AM

@B2C you're a mod? i didn't notice that. were you always a mod?
Was This Post Helpful? 0
  • +
  • -

#8 Enfinik  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 18-May 09

Re: Creating Triangle Patterns

Posted 04 June 2009 - 03:04 PM

Hey schiranjeevi2007,

A couple weeks ago someone posted asking a very similar question. I replied, and you can take a look @ what I replied and also read what all the other wonderful members @ D.I.C. said also. I tried to be as clear as possible. Make sure you try to understand what I did, and look @ the big picture. Also ask any other questions if you have any. Hope this helps :)

Here is the thread:
http://www.dreaminco...topic107134.htm
Was This Post Helpful? 0
  • +
  • -

#9 erik.price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 485
  • View blog
  • Posts: 2,690
  • Joined: 18-December 08

Re: Creating Triangle Patterns

Posted 04 June 2009 - 03:12 PM

I'll give you a hint (nothing else however, until you show some effort).

Think 'for loop'
think 'cout' think '*'
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1