Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.util.Random;
- /**
- *
- * @author Lenovo
- */
- public class Example1 {
- public static void main(String[] args) {
- double result=0.0;
- int i=1,n;
- System.out.println("Please enter the number that you want for array");
- Scanner arr = new Scanner(System.in);
- n = arr.nextInt();
- int [] number = null;
- Random r = new Random();
- i = r.nextInt(10);
- for(i=0;i<number[n];i++)
- {
- result = number[i]*number[i+1];
- }System.out.println("This is you result: " +result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement