Create a function, which calculates the sum of numbers from 1 to x. You will need to use a while loop, Also how could i Add to the code so that the function also displays if the number is odd or even PS using hole integers
MATLAB: How do i create a code which calculates the sum of number from 1 to x
sum of positive integers from 1 to an unknown
Best Answer