Write a script that will generate seven random integers in the range [-100:200] inclusive and then print
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a script that will generate seven random integers in the range [-100:200] inclusive and then print the value of each integer and whether it is positive or negative and whether it is even or odd.
An output from this program might be:
-57 is negative and odd.
26 is positive and even.
If zero is one of the random integers generated, remember that zero is even and neither negative or positive.
Hint: even numbers are divisible by 2 with no remainder.
Solve it in MATLAB
Related Book For
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord
Posted Date: