I have an interger array of size n. How can i write code such that
1. I get a 1 if ALL elements of the array are less than a certain number
2. I get a 0 if ANY element of the array is bigger than a certain number
This can be in functions or otherwise...[to have them both in a single function would be fantastic:)]
I thought abt it a lot but can`t think how to do it. Any help will be appreciated.
Thx in advance