Cho một dãy số a gồm n số nguyên a1,a2,...,an được nhập từ bàn phím (n<100) có giá trị tuyệt đối không lớn hơn 1000. Hãy cho biết a có phải là một cấp số cộng không? Hướng dẫn HS viết được chương trình cho bài toán trên.

Các câu hỏi liên quan

I.Complete the following sentences with “be going to” or “will”. Sometimes both are correct. 1. A: I can’t come during the day. B: I (see) ................ you tomorrow evening. 2. The method is quite simple, and I’m sure it (be) ............familiar to most of you already. 3. That cheese smells awful. I think nobody (eat) .................... it. 4. A: Did you get the theatre tickets? B: No, I forgot all about them. I (book)................ them tomorrow. 5. Wherever you go in Viet Nam, you (find) ...................the people very friendly. 6. Phong says he (be)...................... a policeman when he grows up. 7. Are these your new racket and shuttlecock? ........................ (you/ take up) table tennis? 8. The sky has gone really dark. There (be)....................... a rain. 9. A: What is the milk used for? B: I (make)................ some yoghurt. 10. You can’t play football in the garden. I (cut).............. the grass. 1. Kate _______________________________ (not join) us next Friday; she will be taking exams that day. 2. A: What are your plans for the holiday? B: I _______________________________ (visit) my grandparents and then go trekking in Sapa. 3. A: I can't fix the problem in my computer, Jason. B: Alright. I ________________________________ (take) a look at it. 4. What are you doing? The car engine has just broken. It _______________________ (not work). 5. I _____________________ (take) you out for ice-cream as long as you get an At on your Math test. 6. Do you think they ____________________________ (win) the championship? 7. A: Do you want to have the pork or the beef? B: I think we ____________________________ (have) the beef, please. 8. According to schedule, rice and clothes __________________________ (be) distributed to nine poorest communes in the next project.