Question: Write a MATLAB program in a script file that finds a positive integer n such that the sum of all the integers 1 + 2

Write a MATLAB program in a script file that finds a positive integer n such that the sum of all the integers 1 + 2 + 3 + ... + n is a number between 100 and 1000 whose three digits are identical. As output, the program displays the integer n and the corresponding sum.

Step by Step Solution

3.42 Rating (174 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Script file clear clc k1 S1 while S 1000 Skk12 d1floorS1... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

652-B-F-F-M (708).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!