unlimited zero as output while running c++ in cpp driod -


for (short = 1; < 5; i++)     (j = 0; j > 0; j--)         cout << << "\t"; 

anybody please answer above code.. getting continuous 0 why please explain

first off, need declare variable j somewhere. assuming have declared j somewhere else in program, program have written here print nothing out.

since j set start @ 0, , 0 not greater 0,

cout<<i<<"\t"; 

line never run. if provide more of code may able answer question better. try setting j start @ 1 if want print out i.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -