Sha256: ca06202f237e89da65bf04a1f22a8ca39498ab2e6f4a752347bcaaf6cddec1c0

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

Ask the user for a
number, then calculate its	   	 	
factorial.		    	
   		 			 
		    	 
This program shows how	we		 	  
handle	recursion	as well as big numbers.		
   		  	 	
Try	giving	10000 as an input... 	  
   			  	 
		    	 	
   	     
		    		 
   		    	
		    			
   	     
		    	   
   		 			 
		    	  	
   			 	 	
		    	 	 
   		 		 	
		    	 		
   		   	 
		    		  
   		  	 	
		    		 	
   			  	 
		    			 
   			 	 
		    				
   	     
		    	    
    
		    	 	  
   	    	
		    	 	 	
   	     
		    	 		 
   				 	
		    	 			
   	     
		    		   
    
		     

 	 			 			 			  	  		 	  	 			 	   		  	 	
   		  	  
	
		   		  	  
			
 	 		  		  		    	 		   		 			 	  
   		  	  
				
 	   	 	  

 	 			 			 			  	  		 	  	 			 	   		  	 	
	
 	
 	 		 			  		  	 	 			 			 		 		   		 	  	 		 			  		  	 	




   		  		  		    	 		   		 			 	  
 
    	
	  	
	  		  		  		    	 		   		 			 	   		   	  		    	 			  		 		  	 	
 
    	
	  	
 	 		  		  		    	 		   		 			 	  
	  

	

   		  		  		    	 		   		 			 	   		   	  		    	 			  		 		  	 	
   	

	

   		    	 		  	   		  	  
	   
	

   			 			 			  	  		 	  	 			 	   		  	 	
 
 			 
 
	  			 			 			  	  		 	  	 			 	   		  	 	 	 					 		  	 	 		 			  		  	  
	
     	
	   
 
 			 			 			  	  		 	  	 			 	   		  	 	

   			 			 			  	  		 	  	 			 	   		  	 	 	 					 		  	 	 		 			  		  	  
 

 


	

   			  	  		  	 	 		    	 		  	  
 
  
 	
	 			 
    	 	 
	  	
	  			  	  		  	 	 		    	 		  	   	 					 		  	 	 		 			  		  	  
 

   	
	   
 
 			  	  		  	 	 		    	 		  	  

   			  	  		  	 	 		    	 		  	   	 					 		  	 	 		 			  		  	  
 

   	
	       
		 
	

   		 			  		  	 	 			 			 		 		   		 	  	 		 			  		  	 	
   	 	 
   		 	
	
  	
  
	

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whitespace-ruby-1.0.0 examples/fact.ws