Wrote code and printed the result to console.