FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


c++ throw cube





Matee
Code:
import java.util.*;

public class moneta{
   public static void main(String[] arg){
   
    Random r=new Random();
       for (;;){
    int los=r.nextInt(6)+1;

       if (los==1){
         System.out.println();
         System.out.println(" o");
         System.out.println();
         }

      if (los==2){
         System.out.println("o");
         System.out.println();
         System.out.println("  o");
         }

      if (los==3){
         System.out.println("o");
         System.out.println(" o");
         System.out.println("  o");
         }

      if (los==4){
         System.out.println("o o");
         System.out.println();
         System.out.println("o o");
         }

      if (los==5){
         System.out.println("o o");
         System.out.println(" o ");
         System.out.println("o o");
         }

      if (los==6){
         System.out.println("o o");
         System.out.println("o o");
         System.out.println("o o");
         }
       try{
         System.in.read();
         System.in.read();
   }catch(Exception e) {
      return;}
}
}
}
Related topics
Command and Conquer
Funny C variable
There's One Born Every Minute
What can I do with C-Panel?
RAP MUZIK
HELP ME in C++
Languages in c++
C++ TUTORIAL : INTRODUCTION TO C++
I searching for a site
Creating an RPG bot in IRC (yes I wrote this)
Filmes préférés francaises
Linux OS
C# or 3Ds max or FL studio teaching needed 500Frih$
Do we have free will?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.