Result is only TRUE.

Home Forums C Programming Result is only TRUE.

This topic contains 1 reply, has 2 voices, and was last updated by  niklaesh 9 years, 8 months ago.

  • Author
    Posts
  • #2090

    jeraid
    Member

    Hello.

    I’m abit of a newbie at C++ programming.
    I’m trying to create a simple program, that can just multiply x and y, that you enter.

    But when I run the program, everything is fine. Then, when I’ve entered the two numbers, the only result that shows up is 1, which must mean that it doesn’t actually retrieve the result, but just says TRUE.

    If anyone would be able to help me with this problem, I’d appreciate it.

    Code:

    Thank you, in advance.

  • #3377

    niklaesh
    Member

    @Gramdtante wrote:

    Hello,you are not trying to print the result, as you can see variable res stores the result of the multiplication, but your are printing the result anywhere….You showResult function should look like

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble