how to do this??
0 1 0 1
0 1 0 1
0 1 0 1
0 1 0 1
plis help!

Recommended Answers

DaniWeb Member Rules:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/forums/faq.php?faq=daniweb_policies

Jump to Post

Each problem can be solved with 3 nested loops.
YOU figure it out. It's YOUR homework.

Jump to Post

All 5 Replies

how to do this??
0 1 0 1
1 0 1 0
0 1 0 1
1 0 1 0
plis help!

Member Avatar

Each problem can be solved with 3 nested loops.
YOU figure it out. It's YOUR homework.

I thought you need only 2 nested loops for each problem but each has a different initial value. :P

Member Avatar

Well... I (and most people) could actually do it with 2, but I was just trying to make it easier for them. That's why I suggested 3.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.