#!/usr/bin/ruby number = 0 count = 0 100.times do count += 1 number += count end puts number