Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
What is going on, guys?
And welcome back to another video, another exercise in our amazing programming chorus.
My name is Vlad PVCs Alphatech.
And in this exercise, what we are going to do is to write a program that calculates the distance between
given to between two given points.
So, for example, suppose that you have two points.
The first point is X1 wife one and the second point is x2 y2.
OK, just two points that simply have an X value and a Y value.
And what you have to do is to find the distance between these two points by using the following formula.
So that's a formula to calculate the distance between two given points.
Yes.
You you've seen this, this example, at least this explanation somewhere on your math class.
But just a quick reminder how you do it and you simply take the value of the first point, which is
X1.
Let me get here my laser so you get the value of X1, you subtract with x2.
So x1 minus x2.
All of that is the power of two.
Plus you take the value of Y one minus Y two and also in the power of two.
And then you sum up both of the results and you apply a square root on the result.
And this gives you the distance between the first point and the second point.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.