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 10 years, 7 months ago.

  • Author
  • #2090



    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.


    Thank you, in advance.

  • #3377


    @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.