Exactly one parameter is positive Open on JetBrains Academy
Write a program that reads three integer numbers and prints true if exactly one number is positive.
Otherwise, it is to print false.
Sample Input:
1 1 1
Sample Output:
false
Sample Input:
1 0 -1
Sample Output:
true
Memory limit: 256 MB
Time limit: 8 seconds
Show topic summary