Some paradigms program examples in C