Computer Science, asked by pooja2786, 1 year ago

write a JavaScript code to print square of accepted number using function​

Answers

Answered by harshal9860293159
1

import java.util.*;

public class hello

{

public static void main ()

int i =1

Scanner sc=new Scanner(System.in);

System.out.println("the answer is ");

while(i<=10)

{

i++;

System.out.println(i);

}

}

}

Click to let others know, how helpful is it

0.0

Similar questions