Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: Document scanning in C# Pin
Member 267131411-Feb-08 6:44
Member 267131411-Feb-08 6:44 
QuestionResultant Image???? Pin
jamilkhan0078-Feb-08 23:00
jamilkhan0078-Feb-08 23:00 
Questionmy program How to print a pyramid is not working properly Pin
Member 43170178-Feb-08 22:08
Member 43170178-Feb-08 22:08 
QuestionRe: my program How to print a pyramid is not working properly Pin
pmarfleet8-Feb-08 22:14
pmarfleet8-Feb-08 22:14 
GeneralRe: my program How to print a pyramid is not working properly Pin
Member 43170178-Feb-08 22:21
Member 43170178-Feb-08 22:21 
GeneralRe: my program How to print a pyramid is not working properly Pin
That's Aragon8-Feb-08 22:45
That's Aragon8-Feb-08 22:45 
GeneralRe: my program How to print a pyramid is not working properly Pin
Robert Surtees8-Feb-08 22:50
Robert Surtees8-Feb-08 22:50 
GeneralRe: my program How to print a pyramid is not working properly Pin
Thomas Stockwell9-Feb-08 2:56
professionalThomas Stockwell9-Feb-08 2:56 
Part of the reason why your program is not working is that you for statements are not proper or for that matter syntactically correct. Their are only 3 arguments in the for loop, you have extra semi-colons all over your for loops. Along with that I cannot see a correct conditional statement in the for loop (the middle paramter).

Try something along these terms

Console.Write("Enter # of lines:");
int temp=Convert.ToInt32(Console.ReadLine());
for(i=0;i<temp;i++)>
{

for(int j=0;j<=i;j++)
{
Console.Write("*");
}
Console.WriteLine();

}

I did not test this code, but it should work. Since this is your homework assignment you will have to figure out how to line up the asterisks to make a nice pyramid. Right now this should produce a right triangle.

Regards,
Thomas Stockwell

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Visit my homepage Oracle Studios[^]

General2 problems (Crystal Report) Pin
mehrdadc488-Feb-08 21:42
mehrdadc488-Feb-08 21:42 
QuestionWhat's wrong?(class) Pin
zeeShan anSari8-Feb-08 20:39
zeeShan anSari8-Feb-08 20:39 
GeneralRe: What's wrong?(class) Pin
pmarfleet8-Feb-08 22:04
pmarfleet8-Feb-08 22:04 
Questionhow to control working in combobox_TextChanged() event? Pin
shaz jazz8-Feb-08 19:12
shaz jazz8-Feb-08 19:12 
QuestionAbout image Pin
sushilhupare8-Feb-08 16:48
sushilhupare8-Feb-08 16:48 
QuestionRe: About image Pin
pmarfleet8-Feb-08 22:13
pmarfleet8-Feb-08 22:13 
QuestionMerging Data Sources Pin
supercharged8-Feb-08 14:51
supercharged8-Feb-08 14:51 
QuestionWhich one is faster, using a string or SelectSingleNode? Pin
AloneInTheDark8-Feb-08 14:36
AloneInTheDark8-Feb-08 14:36 
AnswerRe: Which one is faster, using a string or SelectSingleNode? Pin
Mark Churchill8-Feb-08 16:53
Mark Churchill8-Feb-08 16:53 
GeneralRe: Which one is faster, using a string or SelectSingleNode? Pin
AloneInTheDark8-Feb-08 18:10
AloneInTheDark8-Feb-08 18:10 
GeneralRe: Which one is faster, using a string or SelectSingleNode? Pin
Mark Churchill8-Feb-08 18:12
Mark Churchill8-Feb-08 18:12 
GeneralRe: Which one is faster, using a string or SelectSingleNode? Pin
AloneInTheDark8-Feb-08 18:24
AloneInTheDark8-Feb-08 18:24 
GeneralRe: Which one is faster, using a string or SelectSingleNode? Pin
Mark Churchill8-Feb-08 18:44
Mark Churchill8-Feb-08 18:44 
AnswerRe: Which one is faster, using a string or SelectSingleNode? Pin
PIEBALDconsult9-Feb-08 3:46
mvePIEBALDconsult9-Feb-08 3:46 
AnswerRe: Which one is faster, using a string or SelectSingleNode? Pin
Scott Dorman10-Feb-08 10:31
professionalScott Dorman10-Feb-08 10:31 
QuestionConverting XML Elements to Strings Pin
BugMeNot ACCOUNT8-Feb-08 14:10
BugMeNot ACCOUNT8-Feb-08 14:10 
GeneralRe: Converting XML Elements to Strings Pin
Joachim Kerschbaumer9-Feb-08 3:04
Joachim Kerschbaumer9-Feb-08 3:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.