FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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;}
}
}
}
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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