A résolu


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

environ 7 ans il y a

A résolu


Box!
Given a box, find the volume of the cube. With each side = a.

environ 7 ans il y a

A résolu


Your favourite city!
Type your favourite city.

environ 7 ans il y a

A résolu


Area of a disk
Find the area of a disk or circle. x= radius of the disk.

environ 7 ans il y a

A résolu


Bruh
Return 'bruh'.

environ 7 ans il y a

A résolu


Was ist denn los?
Nur für deutschsprechende Leute! Wie geht's? ...also gut, bis bald!

environ 7 ans il y a

A résolu


find whether it is prime or not
For a given number find if its prime

environ 7 ans il y a

A résolu


determine amount cookies left
started with 3 cookies and you never ate any how many are left

environ 7 ans il y a

A résolu


Adding Numbers
Add the input numbers to the original.

environ 7 ans il y a

A résolu


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

environ 7 ans il y a

A résolu


Complex number
For complex number c=a+bi, write code that will add a and b together.

environ 7 ans il y a

A résolu


Will there be a new leader?
Simply answer the title.

environ 7 ans il y a

A résolu


Wrapping the Tower of Pisa
The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a ci...

environ 7 ans il y a

A résolu


Times 3 problem
When you enter the number, it should return the number multiplied by 3

environ 7 ans il y a

A résolu


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

environ 7 ans il y a

A résolu


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

environ 7 ans il y a

A résolu


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

environ 7 ans il y a

A résolu


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

environ 7 ans il y a

A résolu


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

environ 7 ans il y a

A résolu


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

environ 7 ans il y a

A résolu


Rounding
Round 10.67 and make 'y' equal to that number.

environ 7 ans il y a

A résolu


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

environ 7 ans il y a

A résolu


Add two numbers
Add two numbers (For beginners)

environ 7 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...

environ 7 ans il y a

A résolu


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

environ 7 ans il y a

A résolu


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

environ 7 ans il y a

A résolu


radius of a spherical planet
You just measured its surface area, that is the input.

environ 7 ans il y a

A résolu


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

environ 7 ans il y a

A résolu


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

environ 7 ans il y a

A résolu


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

environ 7 ans il y a

Charger plus