Практика Shadowing: What's an if statement? 🤔 - Изучайте разговорный английский по видео

Выберите режим практики

Каждый режим открывает полноэкранную комнату практики.

92 предложений
Если предложения слишком короткие или длинные, нажмите Edit, чтобы их изменить.
1
All right guys, we are on if statements.
2
With an if statement, you do something if a condition you set is true.
3
If not, then don't do it.
4
It's as simple as that.
5
We'll ask a user what their age is.
6
If their age is greater than or equal to 18, they'll be allowed into our site.
7
If they're under 18, well, we won't let them in.
8
Let's declare variable age.
9
Int age.
10
Then we'll create a prompt.
11
standard output enter your age.
12
Standard input age.
13
Okay, this is how to write an if statement.
14
You type if, then a set of parentheses, then a set of curly braces.
15
If some condition within the parentheses is true, you perform some subset of code.
16
We are going to check if age is greater than or equal to 18.
17
Greater than or equal to is a comparison operator.
18
There's other comparison operators such as less than or equals to, less than, greater than.
19
If you need to compare if two values are equal, you use two equal signs.
20
You don't wanna say equals because then you're setting age equal to 18.
21
Equals is the assignment operator.
22
So let's check to see if age is greater than or equal to 18.
23
Then we'll print a message.
24
Standard output.
25
Welcome to the site.
26
Okay, let's Let's try this.
27
Enter your age.
28
Let's say that I'm 12.
29
Well, it doesn't do anything.
30
Since this condition evaluated to be false, we skip over this body of code.
31
If it were true, then we execute it.
32
This time my age is 21.
33
I hit enter.
34
Welcome to the site.
35
If you would rather do something else if a condition is false, you can use an else statement.
36
An else statement you will place at the end.
37
There is no condition.
38
Else, we will print standard output.
39
You are not old enough to enter.
40
Okay, let's try this again.
41
Enter your age.
42
I'll say that I'm 12.
43
You are not old enough to enter.
44
That's an if statement.
45
If some condition is true, you do something.
46
If not, you can do something else or nothing at all.
47
There are more conditions you can check by using an else if statement.
48
We can check another condition by adding else if.
49
If this condition is false, check this else if condition.
50
Let's check to see if age is less than zero.
51
That means somebody hasn't been born yet.
52
You haven't been born yet.
53
Okay, now check this out.
54
Let's say that my age is negative 10.
55
Then I hit enter.
56
You haven't been born yet.
57
Since this condition was false, we skip this section of code.
58
Then we check the else if statement.
59
Since this condition was true, we execute this body of code.
60
Then skip over the else statement.
61
Let's add one more else if statement.
62
Else if...
63
Age is greater than or equal to 100.
64
Standard.
65
Output.
66
You are too old to enter this site.
67
Okay, enter your age.
68
I am 120 years old.
69
I hit enter.
70
Welcome to the site.
71
We check these conditions one by one starting from the top.
72
We stated that our age was 120 years old.
73
Even though we were expecting to execute this body of code, we instead executed this body of code within the if statement.
74
That's because our age was technically still greater than or equal to 18.
75
So the order of your if and else if statements does matter.
76
It makes a difference.
77
If we need to execute this body of code, if somebody's age is greater than or equal to 100, well then we should probably move that to the top.
78
Then turn it into an if statement.
79
Else if age is greater than or equal to 18, we will display this message.
80
Let's try this one more time.
81
Enter your age.
82
I am 120 years old.
83
I hit enter.
84
You are too old to enter this site.
85
So yeah, that's an if statement.
86
You do something if a condition is true.
87
If not, then you don't do it.
88
If you would rather do something else, you can use an else statement.
89
If there's other conditions you would like to check before reaching the else statement, you can use an else if statement.
90
And there's really no limit to these.
91
If you would like a copy of this code, I'll post this in the comment section down below.
92
And well, yeah, those are if statements in C++.

Скачать приложение

Всё для свободной речи

ИИ-оценка произношенияОценка каждой фразы
Практика IPAОсвойте каждый звук
СловарьСоберите свой словарный запас
Игра со словамиУчитесь играя

Тот же канал

FOR YOU

Рекомендуемое видео

Лексика и советы по произношению к этому уроку

Этот урок разговорной практики уровня B1 построен на видео «What's an if statement? 🤔». Чаще всего повторяются слова: statement, condition, equal, enter, greater. В этом видео 92 предложений и 733 слов для шедоуинга. Речь длится 4:53. Говорящий говорит в естественном темпе, около 150 слов в минуту, близком к повседневной речи. 92% слов входят в 3000 самых частых слов английского языка, поэтому лексика простая.

Ключевая лексика этого видео

Самые сложные слова из видео (13), с произношением и значением:

СловоПроизношениеЗначение
execute глагол/ˈɛksɪˌkjuːt/казни́ть
skip глагол/skɪp/перескакивать
operator существительное/ˈɑpəˌɹeɪtɚ/телефони́ст, телефони́стка
parenthesis существительное/pəˈɹɛn.θə.sɪs/вво́дное сло́во
subset существительное/ˈsʌbˌsɛt/подмно́жество
curly прилагательное/ˈkɝli/кудря́вый, курча́вый
brace существительное/bɹeɪs/скоба́, скре́па
prompt глагол/pɹɑmpt/побужда́ть, внуша́ть
evaluate глагол/ɪˈvaljʊeɪt/оце́нивать, оцени́ть
declare глагол/dɪˈklɛɚ/объявля́ть
technically наречие/ˈtɛk.nɪˌkəl.i/что́бы быть то́чным, со́бственно
variable прилагательное[ˈvæɹ.i.ə.bl̩]переме́нный, изме́нчивый
assignment существительное/əˈsaɪn.mənt/назначе́ние, распределе́ние

Фразы, которые стоит повторять

Короткие законченные фразы из видео, которые пригодятся в повседневном разговоре:

  • We'll ask a user what their age is.
  • Then we'll create a prompt.
  • Then we'll print a message.
  • You haven't been born yet.
  • Let's add one more else if statement.

Грамматика в этом видео

Конструкции, которые говорящий использует чаще всего, с точными словами из видео:

КонструкцияВ видео
Условные предложения if + предложение, will/would + глагол — условие и его результатIf they're under 18, well, we won't let · If there's other conditions you would like
Пассивный залог be + причастие прошедшего времени — важно, что происходит, а не кто это делаетbe allowed · been born
Present Perfect have/has + причастие прошедшего времени — прошлое действие, важное сейчасhasn't been born · haven't been born
Сравнительная степень -er than / more … than — сравнение двух вещейgreater than

Произношение, на которое стоит обратить внимание

Говорящий использует 19 сокращённых и редуцированных форм, например don't, we'll, haven't. Произносите их коротко, так, как слышите.

  • Длинные слова — следите за ударением: operator /ˈɑpəˌɹeɪtɚ/, parenthesis /pəˈɹɛn.θə.sɪs/, technically /ˈtɛk.nɪˌkəl.i/

Как заниматься с этим видео

  1. Прослушайте всё видео один раз молча и выпишите незнакомые слова.
  2. Начните со скорости 0,75×, повторяйте предложение за предложением и вернитесь к обычной скорости, когда станет легко.
  3. Запишите себя и сравните с оригиналом, обращая внимание на такие слова, как execute, skip, operator.

Что такое техника Shadowing?

Shadowing — это научно обоснованная техника изучения языка, изначально разработанная для подготовки профессиональных переводчиков и популяризированная полиглотом доктором Александром Аргуэльесом. Метод прост, но эффективен: вы слушаете аудио на английском от носителей языка и немедленно повторяете вслух — как тень, следующая за говорящим с задержкой в 1–2 секунды. В отличие от пассивного прослушивания или грамматических упражнений, Shadowing заставляет мозг и мышцы рта одновременно обрабатывать и воспроизводить реальные речевые паттерны. Исследования показывают, что это значительно улучшает точность произношения, интонацию, ритм, связную речь, понимание на слух и беглость речи — что делает его одним из самых эффективных методов для подготовки к IELTS Speaking и реального общения на английском.

Техника шедоуинга: читать полное пошаговое руководство →