First year computer science:Matlab question
Write a program (you don’t have to use user-defined functions) that prompts you to input a number n, and let the program calculate and display the total of 1+2+3+t. However, the sum cannot be larger than 20. Your result should look like this: Enter a number: 3 The result is: 6 Or Enter a number: 100 The result is: 15 Show transcribed image text Write a program (you don’t have
OR
OR