Last active
          December 16, 2015 08:58 
        
      - 
      
- 
        Save asbubam/5409442 to your computer and use it in GitHub Desktop. 
    Euler scala Ex01
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | object Ex01 extends App { | |
| var sum = 0 | |
| for (i <- 0 until 1000) { | |
| if(i % 3 == 0 || i % 5 == 0) sum = sum + i | |
| } | |
| println(sum) | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment