CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2012
    Posts
    4

    [RESOLVED] [HELP, C++] array with prime numbers

    Hi, i'd need some help with a function...
    well, i need to write a function with an array parameter and an int parameter.

    that array has to be filled with first 10 prime numbers that are exact or higher than the int parameter...
    and then i need an average value of those 10 prime numbers...

    The problem is im not really sure how i should do the part to fill the array with prime numbers that are higher than that int?? So any code samples that does that would be really nice... (the average part shouldnt do much problems i think, so i only need for that array fill...)

    Code:
    int avgprimearray (int higharray[], int somenumber){
    
    }

  2. #2
    Join Date
    Nov 2012
    Posts
    4

    Re: [RESOLVED] [HELP, C++] array with prime numbers

    posted in worng section, sorry :/

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured