I'm trying to output even numbers 2-200 in one single line of code, but instead of displaying the number it's displaying a curly bracket after the text.
Here's the code:
disp(['Sum of even numbers from 2 to 200 =',sum(2:2:200)])
display
disp(['Sum of even numbers from 2 to 200 =',sum(2:2:200)])
Best Answer