Computer Science, asked by sunitagupta54637, 11 months ago

Write the JavaScript code for displaying the natural number from 1 to 10. If you know the correct code then write if not then w r i t e

Answers

Answered by modi7260
1

Answer:

public class Exercise10 {

public static void main(String[] args)

{

int i;

System.out.println ("The first 10 natural numbers are:\n");

for (i=1;i<=10;i++)

{

System.out.println (i);

}

System.out.println ("\n");

}

}

Please mark it as brainliest.

Answered by ndjaat2007
0

Answer:

............................................,,,....

Similar questions