c# - How to create a loop for the following case? -


/html/body/table/tr[1]/td[2] /html/body/table/tr[1]/td[4]  /html/body/table/tr[3]/td[2] /html/body/table/tr[3]/td[4]  /html/body/table/tr[5]/td[2] /html/body/table/tr[5]/td[4] 

so, index of tr[ ] odd numbers, , td[ ] either 2 or 4.

for(int = 1; < bound; += 2) {     for(int j = 2; j <= 4; j += 2) {         console.writeline(             string.format("/html/body/table/tr[{0}]/td[{1}]", i, j)         );     }     console.writeline(); } 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -