anonymous
  • anonymous
number of rectangles in this square of 3X3 answer is 22..? can anyone explain how for(int rect_width=1;rect_width<=width;rect_width++) for(int rect_height=1;rect_height<=height;rect_height++) { if (rect_width==rect_height) continue; // Don't count squares! for(int left=0;left<=width-rect_width;left++) for(int top=0;top<=height-rect_height;top++) count++; i couldnot understand this
Mathematics
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions.

anonymous
  • anonymous
number of rectangles in this square of 3X3 answer is 22..? can anyone explain how for(int rect_width=1;rect_width<=width;rect_width++) for(int rect_height=1;rect_height<=height;rect_height++) { if (rect_width==rect_height) continue; // Don't count squares! for(int left=0;left<=width-rect_width;left++) for(int top=0;top<=height-rect_height;top++) count++; i couldnot understand this
Mathematics
jamiebookeater
  • jamiebookeater
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
here width=3 and height=3
nikita2
  • nikita2
|dw:1327775238628:dw| You should calculate suchh `
anonymous
  • anonymous
yep but the thing is i have to do it programmatically i have written the code over there to do that but i could not understand it|dw:1327843586298:dw|

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.