4. viết chương trình a, nhập vào 2 số nguyên bất kì từ bàn phím b, in ra màn hình tổng hiệu tích tương của 2 số nguyên đó c,in ra màn hình số lớn hơn d, kiểm tra xem số nào chẵn thì in ra( có thể cả 2 số đều chẵn hoặc k có số nào chẵn ) với lại cho mình hỏi cái này làm ra vở được k ạ mình cần gấp giúp mình với thanks

2 câu trả lời

ảnh nha 

program oken;

uses crt;

var a,b:integer;

begin

clrscr;

write('nhap so thu 1: '); readln(a);

write('nhap so thu 2: '); readln(b);

writeln('tong 2 so: ',a+b);

writeln('hieu 2 so: ',a-b);

writeln('tich 2 so: ',a*b);

writeln('thuong 2 so: ',a/b:0:3);

if a>b then writeln('so ',a,' lon hon so ',b) else writeln('so ',a,' be hon so ',b);

if (a mod 2=0) and(b mod 2=0) then writeln('hai so deu la so chan')

                        else if (a mod 2=0) then writeln ('so ',a,'la so chan') 

                                          else if b mod 2=0 then writeln('so ',b,' la so chan')

                                                              else writeln('khong co so nao chan');

readln;

end.

-cái này ghi ra vở được nha bạn

 Cho mình xin câu trả lời hay nhất nha :D

Câu hỏi trong lớp Xem thêm

II. Choose the word or phrase that best completes each unfinished sentence below. 6. Radioactive pollution is increasing the increased use of radioactivity. A. as B. since C. because of D. because 7. Do you think there would be less conflict in the world if all people the same language? A. spoke B. speak C. had spoken D. will speak 8. Unless you all of my questions, I can’t do anything to help you. A. answered B. answer C. would answer D. are answering 9. Singapore is famous for its …………. streets and green trees. A. cleanliness B. cleanly C. cleaning D. clean 10. If someone into the store, smile and say, “May I help you?” A. comes B. came C. come D. should come 11. It was said that the fish died a powerful toxin in the sea water. A. because of B. because C. since D. as a result 12. “Here’s my phone number”. “Thanks. I’ll give you a call if I some help tomorrow” A. will need B. need C. would need D. needed 13. is the festival celebrated? – Every year. A. When B. How often C. How D. What 14. The death rate would decrease if hygienic conditions improved. A. was B. is C. were D. had been 15. On Christmas Eve, most big cities, especially London are _______ with coloured lights across the streets and enormous Christmas trees. A. decorated B. hang C. put D. made 16. If she him, she would be very happy. A. would meet B. will meet C. met D. should meet 17. Nga is a beautiful girl; ______ , she’s kind - hearted. A. therefore B. however C. moreover D. otherwise 18. If I had enough money, I abroad to improve my English. A. will go B. would go C. went D. should have go to 19. She has read interesting book. A. a B. an C. the D. Ø 20. If it convenient, let’s go out for a drink tonight. A. be B. is C. was D. were

8 lượt xem
1 đáp án
6 giờ trước