hm, another add by me,

while(1) its better for unlimited scanf for that switch case until the user break it than do while loop i assume