r/badcode • • Mar 26 '19

[deleted by user]

[removed]

103 Upvotes

88 comments sorted by

View all comments

Show parent comment

2

u/random_runner Mar 26 '19

If the first if isn't true, you'd be missing the zz.

1

u/ilmale Mar 26 '19

Ah, you are right. My bad.

edit: Patching

if (i%5==0)
{
   std::cout << "\rBu";
   if (i%3!=0)   std::cout << "zz";
}