Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
VB
get input from user and display in the given pattern..need coding for this in c #
*
**
***
****
Posted
Comments
Abhinav S 27-Jan-12 5:13am    
What have you tried?
pavi.dec 27-Jan-12 5:15am    
tried using loop
Uday P.Singh 27-Jan-12 5:14am    
what you have done so far?
thatraja 27-Jan-12 5:17am    
IIRC it's a repost(duplication question), right?
Nasir M@hmood 27-Jan-12 5:23am    
try your self

Do not give your assignment to us. Try to solve at your end.
After couple of trials, if your are failed to recieve desired output. then surely CP will help you.

Try Try...don't cry

looks, you are begineer in .NET, so it's a great chance for learning. take a challange and get your output.

Best luck.
 
Share this answer
 
Comments
Anuja Pawar Indore 27-Jan-12 7:29am    
My 5+
And what you are trying, you can post here if it's not working. We will surely help you
C#
for(int i=0;i<5;i++)
{
  for(int j=0;j<i;j++)>
  {
     Console.Write("*");
  }
  console.writeline();
}
 
Share this answer
 
v2
Comments
Anuja Pawar Indore 27-Jan-12 5:48am    
Added pre tag

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900