• Post Reply Bookmark Topic Watch Topic
  • New Topic

find greatest common denominator  RSS feed

 
Mohammed M Ali
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I am a beginner programmer,

I want to find out GCD.
I would like to compare the maximum value to di [] array. I would like to have a return array of GCD.
my problem is with method  public  int[] calculateGCD(int[] di, int f), which f is the maximum value that I defined above.

thanks for help


 
Junilu Lacar
Sheriff
Posts: 11490
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohammed M Ali wrote:
my problem is with method  public  int[] calculateGCD(int[] di, int f), which f is the maximum value that I defined above.

But what exactly is your problem? Please TellTheDetails (←click that, it's a link) so that others know how to help. Without knowing what the problem you're trying to address is, it's hard to tell you what you can do to solve it.
 
Knute Snortum
Sheriff
Posts: 4279
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post code that compiles.  This line: ... has a syntax error.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!