Cau 1
Cho day so nguyen A=[4,5,3,7,6,5,6,7,8,4,3,10,9,8]
Viet chuong trinh nhap vao mot so nguyen K.Tim tat ca cac phan tu trong A bang voi K ,hay cho biet do la nhung phan tu thu may cua day.(Ap dung thuat toan tim kiem tuan tu)
Cau 2:Cho day so nguyen A=[10,12,15,23,25,28,30,34,37,40,41,45].Viet chuong trinh nhap vao mot so K va tim trong day A xem co phan tu nao bang K khong?Neu co hay cho biet do la phan tu thu may cua A.
Cau 3:Viet chuong trinh tao ra mot day so A co n so nguyen.Thong bao ra man hinh gia tri lon nhat trong day A va cho biet nhung phan tu nao trong A LA LON NHAT
Cau 4:Viet chuong trinh tao ra va in ra man hinh mot ma tran A gom m x n so nguyen (m dong,n cot)
a.Tinh trong cac so co trong day A
b.Cho biet dong so may co tong gia tri lon nhat va gia tri lon nhat la bao nhieu?