int snippets() { // Snippet 1 int a; if (a = 0) printf("zero"); else printf("not zero"); // Snippet 2 int a = 3; while (a) { printf("%d\n", a); a--; } // Snippet 3 int x = 2, y = 6; while (x < y) { printf("%d-%d;", x, y); x++; --y; } // Snippet 4 int x = 5; while (x&&x - 1) { printf("%d\n", x--); } }