hello, how do i make the user enter only positive number in an array using while loop to check positivity? thanks
MATLAB: Positive numbers using while loop
#while #loop #positive #numbers
Related Question
- Extracting positive numbers
- Write a function ShowPrimes(n) that will find all prime numbers between 1 and n and return them as a vector. Do this using a for loop. Hint: use isprime(x) to check whether x is a prime number. As an example, >> primes=ShowPrimes(20) primes =
- Generate positive random numbers
- Finding the sum of the first n primes and to use a while function
- Detect consecutive positive numbers in an array
Best Answer