some tasks from first semester in C language