A résolu


Row sum

presque 2 ans il y a

A résolu


Row avg

presque 2 ans il y a

A résolu


Factorial

presque 2 ans il y a

A résolu


find the height

presque 2 ans il y a

A résolu


PIN code

presque 2 ans il y a

A résolu


F.R.I.E.N.D.S

presque 2 ans il y a

A résolu


Find the sum of all integers in a given matrix
Finding sum of all integers in a given matrix

presque 2 ans il y a

A résolu


Divide pi
Divide pi by x!

presque 2 ans il y a

A résolu


Draw the symbol '+'
Draw '+' in an x-by-x matrix (where x is odd and x >3) Example: x = 5 y = [0 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 ...

presque 2 ans il y a

A résolu


Summation of integers

presque 2 ans il y a

A résolu


square of a number
find square of a given number

presque 2 ans il y a

A résolu


Odd row
Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...

presque 2 ans il y a

A résolu


Power Numbers
Find the n-th power of m.

presque 2 ans il y a

A résolu


Sort in descending order.

presque 2 ans il y a

A résolu


area

presque 2 ans il y a

A résolu


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

presque 2 ans il y a

A résolu


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

presque 2 ans il y a

A résolu


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

presque 2 ans il y a

A résolu


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

presque 2 ans il y a

A résolu


Square a Number
Given an input x, return y, which is equal to the square of x.

presque 2 ans il y a

A résolu


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

presque 2 ans il y a

A résolu


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

presque 2 ans il y a

A résolu


length of a vector
Find twice the length of a given vector.

presque 2 ans il y a

A résolu


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

presque 2 ans il y a

A résolu


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

presque 2 ans il y a

A résolu


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

presque 2 ans il y a

A résolu


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

presque 2 ans il y a

A résolu


01 - Scalar variables
Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

presque 2 ans il y a

A résolu


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

presque 2 ans il y a

A résolu


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

presque 2 ans il y a

Charger plus