• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Multiply with diferrent value  RSS feed

 
adil diab
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello expert Java I want to implement the following simple algorithm with java. I have an input which is to be multiplied by one and two.

Input: 123456 Multiplication: (1*1)+(2*2)+(1*3)+(2*4)+(1*5)+(2*6)=result



thanks in Advance
 
Campbell Ritchie
Marshal
Posts: 56593
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
… and what do you think you should do?

You might do well to start by telling us exactly what the algorithm is.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!