GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 28-Aug-2008, 10:07
markie0923 markie0923 is offline
New Member
 
Join Date: Aug 2008
Posts: 2
markie0923 is on a distinguished road

loopings


hi, i'm new to c++, can someone help me make a program using for loop with this output;

enter a no:3
1*
2**
3***

the no. and asterisk depends on the inputed no.
thanks,, response are mostly appreciated.
  #2  
Old 28-Aug-2008, 10:12
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 534
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: loopings


Here are some hints:

CPP / C++ / C Code:
int i;
for( i=0; i<5; ++i )
{
  // whatever you put in here will get called 5 times

  // the 1st time it gets called, i will be equal to 0
 
  // the 5th time it gets called, i will be equal to 4
}
  #3  
Old 28-Aug-2008, 10:16
markie0923 markie0923 is offline
New Member
 
Join Date: Aug 2008
Posts: 2
markie0923 is on a distinguished road

Re: loopings


thanks appreciate the response.
 
 

Recent GIDBlogStupid Management Policies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:14.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.