Write a function that sums from 1 to given number? function solve( a ){ //write your code here } Login to Submit
Input: 1 Output: 1 Input: 2 Output: 3 Input: 5 Output: 15