Second, you cout
Third, you can't have the result you said. You should add an if between or above two couts to realize the problem that what you said is not an integer, and then in couts.
I just give you a general idea. Think about this sentence yourself. What others give you is others', even your own is your own, even if it is cumbersome. The deeper you learn, the easier it will be.
I wish you success in your study.