rss
Twitter Delicious Facebook Digg Stumbleupon Favorites

Friday, October 7, 2011

A program to generate 5 Random numbers between 1 to 100




class RandomNos{
      public static void main(String args[]){
          for(int i=1;i<=5;i++){
              System.out.println((int)(Math.random()*100));
          }
    }
}

0 comments:

Post a Comment

Powered by Blogger.