Computer Science, asked by sisindhar1163, 10 months ago

Write a program which print the following series-1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 in computer​

Answers

Answered by prashantrohilla32
0

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

    Scanner sc=new Scanner(System.in);

   

   for(int i=1;i<=20;i++)

   {

       System.out.println(i);

   }

}

}

Explanation:

it is a java program

Attachments:
Answered by areebsiddiqui950
2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Similar questions