How far is it from your house to the nearest market?
...................................................between your house and the nearest market?
Các câu trả lời
Câu hỏi Tiếng anh Lớp 7
- Our lives (1) _____________________________ (make) better every day thanks to inventions. But sometimes, inventions...
- help me BÀI TẬP ÔN TẬP: BECAUSE, BECAUSE 0F; ALTHOUGH, IN SPITE OF (DESPITE) 1. Mai worked hard, ______...
- 13. He was very tired but he kept on working. A.Despite he was very tired, he kept on working. B.In spite of he was...
- 1. (+) They decided to leave soon. (-)...
- Tìm lỗi sai và sửa 1, It was first discovered several years ago that the former senator, once respected by many, were...
- 1. Please take care………….her because she is too...
- 1. We will use renewable energy in the future. → Renewable energy...
- có ai xem phim thần tượng tuổi 300 ko vậy? phim hay ***** mong ra tập mới v~~~ -HÓNG-
Câu hỏi Lớp 7
Bạn muốn hỏi điều gì?
Đặt câu hỏix
- ²
- ³
- √
- ∛
- ·
- ×
- ÷
- ±
- ≈
- ≤
- ≥
- ≡
- ⇒
- ⇔
- ∈
- ∉
- ∧
- ∨
- ∞
- Δ
- π
- Ф
- ω
- ↑
- ↓
- ∵
- ∴
- ↔
- →
- ←
- ⇵
- ⇅
- ⇄
- ⇆
- ∫
- ∑
- ⊂
- ⊃
- ⊆
- ⊇
- ⊄
- ⊅
- ∀
- ∠
- ∡
- ⊥
- ∪
- ∩
- ∅
- ¬
- ⊕
- ║
- ∦
- ∝
- ㏒
- ㏑
The nearest market is located just a short 10-minute drive away from my house.
To get to the nearest market from my house, it takes me roughly 20 minutes by walking.
The distance between my house and the nearest market is approximately 1.5 kilometers.
It is about 1.5 kilometers from my house to the nearest market.
Để giải câu hỏi trên, chúng ta cần sử dụng cấu trúc điều kiện trong ngôn ngữ lập trình Pascal. Chúng ta sẽ sử dụng cú pháp "if...then...else" để kiểm tra xem giá trị của b khi chia cho 2 dư 1 hay không.
Dưới đây là cách làm và câu trả lời cho câu hỏi:
Cách làm 1:
```pascal
program CheckOddNumber;
var
b: integer;
begin
writeln('Nhap vao mot so nguyen b: ');
readln(b);
if b mod 2 = 1 then
writeln(b, ' la so le')
else
writeln(b, ' khong la so le');
end.
```
Cách làm 2:
```pascal
program CheckOddNumber;
var
b: integer;
begin
writeln('Nhap vao mot so nguyen b: ');
readln(b);
if (b div 2 = 1) then
writeln(b, ' la so le')
else
writeln(b, ' khong la so le');
end.
```
Câu trả lời đúng cho câu hỏi là:
C. If b mod 2=1 then Write('b la so le');