practice based on the algorithm and structure in c.