Sir for one program this solution is fine but not for bulk of programs. I want if one variable then one rectangle will show, if two variables then two rectangles will show , if three variables three rectangles will show and so on.