Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the condition 1<=I<J<=N, for a given value of N.
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers43
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15821 Solvers
-
1558 Solvers
-
Make a random, non-repeating vector.
11874 Solvers
-
405 Solvers
-
Matlab Basics II - Log and natural log
196 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Prasad, I enjoyed thinking through the pattern to solve this problem and the related problem. One suggestion for both is to add more test cases so that solvers cannot simply write their codes to return the answer to the single test case.