Watermelon [MATLAB Cody Edition]
YOU CAN READ THE REAL CHALLENGE FROM THIS URL AND APPLY IT
https://codeforces.com/problemset/problem/4/A
NOW INSTEAD OF DISP...
21日 前
解決済み
varargin
Write a function that can take a diffrent Amount of inputs for every run Which gives you the sum of all Inputs.
Example:
f(a,b...
21日 前
解決済み
Switch-Case-Otherwise
You should make random numbers to 10, by 3 rows and 3 columns.
Cases from 1 to 3, b = true.
Otherwise, b = false.
23日 前
解決済み
List Chen primes
A Chen prime is a prime number p such that p+2 is either prime or semiprime. The number 17 is a Chen prime because 17+2 = 19 is ...
23日 前
解決済み
Problem Set 2
Make a calculator by the four main operators (op):
+
-
*
/
And the two numbers (n1, n2).
Don't forget to check to divisio...
23日 前
解決済み
Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then...
If it's length from 1 to 5, sz = ...
23日 前
解決済み
NOT
If a not equal to zero, b = true, else, b = false.
23日 前
解決済み
OR
If a greater than zero or c less than 10, b = true, else, b = false.
23日 前
解決済み
AND
If a greater than 0 and n less than 10, b = true, else, b = false.
(Checking a should be in one line by AND special sign in MAT...
23日 前
解決済み
Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.
23日 前
解決済み
List the semiprimes
A semiprime number—or a 2-almost prime—is the product of two prime numbers. The numbers and are semiprimes, but and are not....
24日 前
解決済み
If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.
24日 前
解決済み
If-Else
If a more than zero, b = true, else, b = false.
Calculate the h-index (revisited)
H-index is a powerful tool for quantifying the scientific contribution of a researcher. The
H-index is defined as follows (fro...