Guess the Logic!
logic(1,1) = 1
logic(1,2) = 4
logic(1,3) = 9
logic(2,2) = 8
logic(2,3) = 27
logic(3,2) = 4
logic(3,3) = 9
logic(4,2) = 8
logic(5,3) = 9
Make a function logic(a,b) which will return value equivalent to logic
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers216
Suggested Problems
-
359 Solvers
-
Height of a right-angled triangle
2079 Solvers
-
特定の値がベクトル内に含まれているかを確認するコードを書こう
344 Solvers
-
Calculate the mean of each half of a matrix
724 Solvers
-
Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)
332 Solvers
More from this Author40
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
There is a discrepancy in the problem statement and the test case.
For a=1,b=3 Two different values are given (9 and 1, correspondingly).
Kindly correct this.
My bad, I saw the test suite and the order of the variables is changed in some test cases.
any hint?