Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

Why does boolean statement only return a true or false statement?

+1 vote
asked Feb 13, 2015 in (Winter 14) by Rafael Rodriguez (100 points)

1 Answer

+1 vote
A Boolean statement will only return a true or false statement because Boolean statements are designed for creating true/false statements. Since computers use binary code, computer logic is often expressed using Booleans. Boolean statements use && and | | operators to compare values and return a true or false result.
answered Feb 13, 2015 by Travis Miller (100 points)
...