A résolu


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

plus de 3 ans il y a

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

plus de 3 ans il y a

A résolu


Return area of square
Side of square=input=a Area=output=b

plus de 3 ans il y a

A résolu


Draw a '1' in a zero matrix!

plus de 3 ans il y a

A résolu


Draw a '0' in a one matrix!

plus de 3 ans il y a

A résolu


Draw a '8' in a zero matrix!

plus de 3 ans il y a

A résolu


Draw a '4' in a zero matrix!

plus de 3 ans il y a

A résolu


Draw a '9' in a zero matrix!

plus de 3 ans il y a

A résolu


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

plus de 3 ans il y a

A résolu


テレビのサイズを求めてみよう
あなたは電気屋で働いています。 あなたの電気屋にテレビを買いに来たお客さんに「何インチのテレビを買いたいのか」と質問したところ、対角線の情報しかわからないと言われてしまいました。 しかし、テレビのインチを知るには、幅と高さの情報が必要です。 ...

plus de 3 ans il y a

A résolu


area

plus de 3 ans il y a

A résolu


DC-DC boost converter
Find the output voltage of a DC-DC boost converter given input voltage and the duty cycle ratio

plus de 3 ans il y a

A résolu


User defined nextpow function
Create a function which will take 2 arguments as n and x, and return y, where, n^y >= abs(x). [ Similar to builtin "nextpow2" fu...

presque 4 ans il y a

A résolu


Number of vertices of a hypercube
Return the number of vertices of a n-dimensional hypercube.

presque 4 ans il y a