Pseudocode ?

This is a discussion on Pseudocode ? within the C Programming forums, part of the General Programming Boards category; I have tryed everything, but I just donīt know how to compile this pseudocode! I would like to know , ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    2

    Wink Pseudocode ?

    I have tryed everything, but I just donīt know how to compile this pseudocode!
    I would like to know , what is the result of this pseudo code?

    Thanks in advance

    Code:
    //////////////////////////////////////////////////////
    
    int max (int a, int b)
    
    {
    if (a > b)
    return a;
    return b;
    }
    int F[] = {2, 3, 5, 2, 3, 5}, i, s = 0;
    for (i = 0; i < 6; i = i + 2)
    {
    s = s + max (F[i], F[i+1]);
    printf (“%d: %d”, i, s);
    }
    printf (“Summe: %d”, s);
    
    ///////////////////////////////////////////
    Thank you very much

    Student from Austria

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,678
    You don't compile pseudo-code.

    Pseudo-code is some text that looks somewhat like code, but is not really. It is used to show an idea, but a bit more work is to write actual code (actual in the sense that a compiler or interpreter will accept it and, when run, the desired results are accepted)
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Sunshine, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to convert a c source code into a pseudocode?
    By blogchama in forum C Programming
    Replies: 2
    Last Post: 01-20-2010, 03:07 PM
  2. writing the pseudocode........functions
    By bajan in forum C++ Programming
    Replies: 3
    Last Post: 04-15-2005, 01:59 PM
  3. URGENT Pseudocode help!!!
    By mcgeady in forum C Programming
    Replies: 10
    Last Post: 11-17-2004, 09:03 PM
  4. Poll: Is pseudocode really needed ?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 29
    Last Post: 02-28-2002, 06:33 PM
  5. Replies: 1
    Last Post: 02-24-2002, 06:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21