Result is only TRUE.

Home Forums C Programming Result is only TRUE.

  • This topic has 1 reply, 2 voices, and was last updated 12 years ago by Anonymous.
Viewing 1 reply thread
  • 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

Viewing 1 reply thread
  • You must be logged in to reply to this topic.

Did you find this post useful? Please consider sharing with your friends and colleagues:)