Tag Selected: area and perimeter calculation in C