title: Sequence/series printing in java
body: <p>I want to write a code in Java which inputs any integer value by the user and gives a output as sum of consecutive numbers=input. All possibilities.</p>
  
  <p><strong>Eg</strong></p>
  
  <p><strong>Input</strong>
  15
  <strong>Output</strong></p>
  
  <ol>
  <li>7+8</li>
  <li>4+5+6</li>
  <li>1+2+3+4×5</li>
  </ol>