Getting User Input And Output In Function