Tiếp tục là các bài tập lập trình C luyện tập kiến thức vòng lặp for. Trong bài viết này, chúng ta sẽ cùng đi code bài tập in các số nguyên tố nhỏ hơn 1000 lên màn hình console. Nếu bạn chưa biết tới khóa học lập trình C của lập trình không khó, […]
#bài tập c++
Bài 14. Chương trình xếp loại học sinh trong C
Trong bài học này, chúng ta sẽ cùng nhau đi giải quyết bài toán: xếp loại học sinh, sinh viên trong C sử dụng kiến thức if else. Bài tập này giúp các bạn rèn luyện kiến thức câu lệnh if else ở bài học trước. Do vậy, nếu bạn chưa học bài học đó, […]
Tổng hợp bài tập C/C++ có lời giải
Chào các bạn, hôm này Lập trình không khó sẽ mang tới các bạn một loạt bài tập c/c++ có lời giải. Đây là các bài tập lập trình C/C++ có lời giải từ cơ bản tới nâng cao. Bao gồm các phần: Bài tập về cấu trúc điều khiển, rẽ nhánh Bài tập về […]
Đọc ma trận từ file trong C++
Hôm nay Lập trình không khó sẽ cùng các bạn đi làm một bài tập lập trình C++. Yêu cầu của đề bài là đọc ma trận từ file sử dụng C++ và sau đó kiểm tra xem ma trận đó có phải ma trận đường chéo không? Có một lưu ý là file chứa […]
Cài đặt code bài toán người du lịch cài đặt bằng C++, Java
Bài toán người du lịch: Một nguời du lịch muốn đi tham quan n thành phố T1,T2…, Tn . Xuất phát từ một thành phố nào đó, người du lịch muốn đi qua tất cả các thành phố còn lại, mỗi thành phố đi qua duy nhất 1 lần rối quay trở trở lại thành […]