Community Profile

photo

Sebastián Añazco


2 total contributions since 2019

Sebastián Añazco's Badges

  • First Answer

View details...

Contributions in
View by

Answered
next prime number using While loops
function k = next_prime(n) if (n == fix(n) && n > 0) == 0 error('n must be an integer positive number'); else t = n ...

1 year ago | 0

Answered
Write a function called halfsum that takes as input an at most two-dimensional array A and computes the sum of the elements of A that are in the lower right triangular part of A
function summa = halfsum(A) summa = 0; for n = 1 : size (A,1) for m = 1:size(A,2) if n >m a = 0; ...

1 year ago | 0