demo cycle in C