Chapter 5 Quick Reference
Số trang: 1
Loại file: pdf
Dung lượng: 6.51 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 5 Quick tham khảo để Thêm một số tiền để biến mộtLàm điều này sử dụng các nhà điều hành bổ sung hợp chất. Ví dụ: số tiền biến + =; Sử dụng toán tử trừ hợp chất.
Nội dung trích xuất từ tài liệu:
Chapter 5 Quick Reference Chapter 5 Quick ReferenceTo Do this Use the compound addition operator. For example:Add an amount to a variable variable += amount; Use the compound subtraction operator. For example:Subtract an amount from a variable variable -= amount; Use a while statement. For example: int i = 0; while (i != 10) { Console.WriteLine(i); i++;Run one or more statements while a }condition is true Alternatively, use a for statement. For example: for (int i = 0; i != 10; i++) { Console.WriteLine(i); } Use a do statement. For example: int i = 0; doRepeatedly execute statements one or {more times Console.WriteLine(i); i++; } while (i != 10);
Nội dung trích xuất từ tài liệu:
Chapter 5 Quick Reference Chapter 5 Quick ReferenceTo Do this Use the compound addition operator. For example:Add an amount to a variable variable += amount; Use the compound subtraction operator. For example:Subtract an amount from a variable variable -= amount; Use a while statement. For example: int i = 0; while (i != 10) { Console.WriteLine(i); i++;Run one or more statements while a }condition is true Alternatively, use a for statement. For example: for (int i = 0; i != 10; i++) { Console.WriteLine(i); } Use a do statement. For example: int i = 0; doRepeatedly execute statements one or {more times Console.WriteLine(i); i++; } while (i != 10);
Tài liệu có liên quan:
-
Giáo trình Lập trình hướng đối tượng: Phần 2
154 trang 316 0 0 -
Kỹ thuật lập trình trên Visual Basic 2005
148 trang 310 0 0 -
Bài thuyết trình Ngôn ngữ lập trình: Hệ điều hành Window Mobile
30 trang 293 0 0 -
NGÂN HÀNG CÂU HỎI TRẮC NGHIỆM THIẾT KẾ WEB
8 trang 248 0 0 -
Bài giảng Một số hướng nghiên cứu và ứng dụng - Lê Thanh Hương
13 trang 248 0 0 -
Giáo trình Lập trình cơ bản với C++: Phần 1
77 trang 242 0 0 -
Giáo án Tin học lớp 11 (Trọn bộ cả năm)
125 trang 231 1 0 -
Bài tập lập trình Windows dùng C# - Bài thực hành
13 trang 204 0 0 -
Thiết kế mạch logic bằng Verilog - HDL
45 trang 197 0 0 -
Bài giảng Nhập môn về lập trình - Chương 1: Giới thiệu về máy tính và lập trình
30 trang 189 0 0