Is it possible to display a diamond in a text form in the console, using only maxim cycles, and primerchik, if not sorry. That is, use the if statement as little as possible. The size of the diamond is not important.

  • four
    So go: < ideone.com/xHqFKX >? None if 'a. - VladD
  • 2
    @VladD, it would be necessary to go there "cycles to the maximum". - falstaf
  • 2
    @falstaf, yes, it is necessary to wrap each cout in for (unsigned i = 0; i <1; ++ i), and wrap all four cycles with one more such =) - Arkady
  • miracle did not happen). thanks to all. I just wanted something like that --0-- -000- --0-- to cut the endl text of the loop - perfect
  • @VladD, now I will recommend your way to everyone. - smackmychi

0