WRITE A JAVASCRIPT CODE TO DISPLAY NATURAL NUMBER FROM 1 TO 10. Please answer the correct
Answers
Answered by
0
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");
}
}
Plz Mark it as Brainliest
And follow me Plz
Answered by
0
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.
Similar questions
Social Sciences,
6 months ago
English,
6 months ago
Geography,
1 year ago
Chinese,
1 year ago
Social Sciences,
1 year ago
Physics,
1 year ago