hey guys can anyone plz xplain to me how can v make a hexagon using only for loops?i just cant figure out how to do it :(
Recommended Answers
Jump to PostThis should give ye' at least an idea. I'll draw half of the hexagon, ye' can do the rest. This is untested, but feel free to tweak it as necessary to draw that perfect hexagon:
#include<iostream> #include<iomanip> void draw_hex() { //Draw Top cout << setw(10); for(int i=0; …
All 3 Replies
Clinton Portis
211
Practically a Posting Shark
kingstrider
-1
Newbie Poster
Clinton Portis
211
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.