[RESOLVED] Wombat 1 - Page 2
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18

Thread: [RESOLVED] Wombat 1

  1. #16
    Join Date
    Dec 2012
    Location
    England
    Posts
    2,265

    Re: Wombat 1

    Quote Originally Posted by rockx View Post
    Yeah the comment should have read line 40. I did some line deletions so i reduced my program from 52 lines to 42 lines. At line 40, the constant 10 is stored.

    That particular code was for a an instruction set as follows:

    1. User enters an integer n
    2. If n < 0 then n^5 (n x n x n x n x n); if n = 0 then 10; if n > 0 then n^2 - 2n +2
    3. THere was no looping, it was just a single run program.
    As the program produces the expected answers, I think the program in post #13 is now working as far as has been tested.
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

  2. #17
    Join Date
    Apr 2014
    Posts
    1

    Re: [RESOLVED] Wombat 1

    Can this thread be deleted?

  3. #18
    Join Date
    Dec 2012
    Location
    England
    Posts
    2,265

    Re: [RESOLVED] Wombat 1

    Quote Originally Posted by KChad View Post
    Can this thread be deleted?
    Why? Threads are left on the forum for future reference.
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center