Ad
Code
Diff
  • public static int euler(int x){
        int sum = 0;
            if(x%3==0||x%5==0){
                sum += x;}
                
        return sum ;
        
      }
    • def euler(num):
    • sum = 0
    • for x in range(num):
    • if x%3==0 or x%5==0:
    • sum += x
    • return sum
    • public static int euler(int x){
    • int sum = 0;
    • if(x%3==0||x%5==0){
    • sum += x;}
    • return sum ;
    • }