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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -