Computer Science, asked by Anonymous, 1 month ago

1.Write a Java program to generate the following Series.
1 2 3 4 5…….. n

Answers

Answered by CopyThat
3

Program:  {JAVA}

public class Series1 {

   public void main(int n) {

      for(int i=1;i<=n;i++) {

              System.out.print ( i + “  " );

}

}

   }

Series: A group or number of similar or related things arranged in a row.

Similar questions