mirror of
				https://github.com/coolaj86/fizzbuzz.git
				synced 2024-11-16 17:29:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			153 B
		
	
	
	
		
			Ruby
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			153 B
		
	
	
	
		
			Ruby
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env ruby
 | |
| (1..100).each do |x|
 | |
|   print "Fizz" if 0 == (x % 3)
 | |
|   print "Buzz" if 0 == (x % 5) 
 | |
|   print "\n" if 0 == (x % 3) || 0 == (x % 5)
 | |
| end
 |