/turul/ - Turul
teadélután & aranyos kislányok
Board Rules
Max file size: 350.00 MB
Max files: 5
Max message length: 4096
Manage Board | Staff: Moderate thread
Return | Magrathea | Catalog | Bottom
Expand All Images
void fizzbuzz(int limit) { for (int i = 1; i <= limit; ++i) { if (i % 3 == 0) { printf("Fizz"); } if (i % 5 == 0) { printf("Buzz"); } if (i % 3 0 || i % 5 0) { printf("\n"); } else { printf("%d\n", i); } }}
void fizzbuzz_2(int limit) { for (int i = 1; i <= limit; ++i) { if (i % 3 != 0 && i % 5 != 0) { printf("%d\n", i); continue; } if (i % 3 == 0) { printf("Fizz"); } if (i % 5 == 0) { printf("Buzz"); } printf("\n"); }}
Top | Catalog | Post a reply | Magrathea | Return | Content Removal | Public thread | Staff: Moderate thread
Board owners/volunteers: use the authenticated staff thread view for bans, IP/range info, thread settings, transfer, and spoil tools. This public thread page is shared with all visitors and caches, so the controls below are only delete/report.
You can delete your own posts with the password you posted with.
Only staff can delete posts on this board. Reporting still works.