Tuesday, February 18

Random Number generation Using Java



Hi ALL,

Here I wrote a program for Random Number generation Using java.


/**
 *
 * @author Balamurgan M
 */
import java.util.Scanner;

public class RandomNumber {
    public static void main(String arg[]){
        System.out.println("Enter the number ");
        Scanner in=new Scanner(System.in);
        for(int i=0;i<10;i++){
            int num=in.nextInt();
            System.out.println(num);
        }
    }

}

No comments:

Post a Comment

Backup files to google drive using PHP coding

 Dear All, To backup files to Google Drive using PHP coding, you can use the Google Drive API and the Google Client Library for PHP. Here...