=begin Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum. =end sumofsquares = 0 sum = 0 1.upto 100 do |n| sumofsquares += n**2 sum += n end diff = sum**2 - sumofsquares print(diff)