Danh mục tài liệu

Chapter 4 Quick Reference

Số trang: 1      Loại file: pdf      Dung lượng: 6.84 KB      Lượt xem: 16      Lượt tải: 0    
Xem trước 1 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Chương 4 Quick Reference Để Xác định hai giá trị tương đương So sánh giá trị của hai biểu thức Khai báo một biến Boolean
Nội dung trích xuất từ tài liệu:
Chapter 4 Quick Reference Chapter 4 Quick ReferenceTo Do this ExampleDetermine whether two values are Use the == or != answer == 42equivalent operator.Compare the value of two Use the = age >= 21expressions operator. Use the bool keywordDeclare a Boolean variable as the type of the bool inRange; variable.Create a Boolean expression that is inRange = (lo