Loops 2

2 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€44
List Price:  €61.60
You save:  €17.60
£37.67
List Price:  £52.74
You save:  £15.07
CA$69.54
List Price:  CA$97.36
You save:  CA$27.82
A$78.47
List Price:  A$109.87
You save:  A$31.39
S$65.70
List Price:  S$91.99
You save:  S$26.28
HK$387.88
List Price:  HK$543.06
You save:  HK$155.18
CHF 40.85
List Price:  CHF 57.20
You save:  CHF 16.34
NOK kr531.72
List Price:  NOK kr744.45
You save:  NOK kr212.73
DKK kr328.58
List Price:  DKK kr460.04
You save:  DKK kr131.46
NZ$84.54
List Price:  NZ$118.37
You save:  NZ$33.82
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.45
৳6,079.41
List Price:  ৳8,511.66
You save:  ৳2,432.25
₹4,282.24
List Price:  ₹5,995.47
You save:  ₹1,713.23
RM220.48
List Price:  RM308.69
You save:  RM88.21
₦80,279.44
List Price:  ₦112,397.64
You save:  ₦32,118.20
₨14,038.66
List Price:  ₨19,655.24
You save:  ₨5,616.58
฿1,662.41
List Price:  ฿2,327.51
You save:  ฿665.09
₺1,906.11
List Price:  ₺2,668.71
You save:  ₺762.59
B$296.18
List Price:  B$414.68
You save:  B$118.49
R946.04
List Price:  R1,324.53
You save:  R378.49
Лв86.01
List Price:  Лв120.43
You save:  Лв34.41
₩71,000.39
List Price:  ₩99,406.24
You save:  ₩28,405.84
₪184.13
List Price:  ₪257.80
You save:  ₪73.66
₱2,839.85
List Price:  ₱3,976.02
You save:  ₱1,136.16
¥7,140.17
List Price:  ¥9,996.81
You save:  ¥2,856.64
MX$1,003.31
List Price:  MX$1,404.72
You save:  MX$401.40
QR182.64
List Price:  QR255.72
You save:  QR73.07
P690.16
List Price:  P966.28
You save:  P276.12
KSh6,478.70
List Price:  KSh9,070.70
You save:  KSh2,592
E£2,553.98
List Price:  E£3,575.78
You save:  E£1,021.80
ብር6,625.19
List Price:  ብር9,275.80
You save:  ብር2,650.60
Kz45,790.84
List Price:  Kz64,110.84
You save:  Kz18,320
CLP$48,489.30
List Price:  CLP$67,888.90
You save:  CLP$19,399.60
CN¥365.25
List Price:  CN¥511.38
You save:  CN¥146.13
RD$3,077.19
List Price:  RD$4,308.32
You save:  RD$1,231.12
DA6,631.67
List Price:  DA9,284.87
You save:  DA2,653.20
FJ$114.55
List Price:  FJ$160.38
You save:  FJ$45.83
Q385.78
List Price:  Q540.13
You save:  Q154.34
GY$10,468.20
List Price:  GY$14,656.31
You save:  GY$4,188.11
ISK kr6,395.72
List Price:  ISK kr8,954.52
You save:  ISK kr2,558.80
DH464.66
List Price:  DH650.56
You save:  DH185.90
L861.82
List Price:  L1,206.62
You save:  L344.79
ден2,702.71
List Price:  ден3,784.01
You save:  ден1,081.30
MOP$399.84
List Price:  MOP$559.81
You save:  MOP$159.96
N$945.19
List Price:  N$1,323.35
You save:  N$378.15
C$1,841.37
List Price:  C$2,578.07
You save:  C$736.69
रु6,860.05
List Price:  रु9,604.62
You save:  रु2,744.57
S/186.92
List Price:  S/261.70
You save:  S/74.78
K203.76
List Price:  K285.29
You save:  K81.52
SAR187.57
List Price:  SAR262.62
You save:  SAR75.04
ZK1,418.48
List Price:  ZK1,985.99
You save:  ZK567.50
L219.09
List Price:  L306.74
You save:  L87.65
Kč1,101.32
List Price:  Kč1,541.94
You save:  Kč440.62
Ft17,953.52
List Price:  Ft25,136.37
You save:  Ft7,182.84
SEK kr490.95
List Price:  SEK kr687.37
You save:  SEK kr196.42
ARS$59,898.93
List Price:  ARS$83,863.30
You save:  ARS$23,964.36
Bs345.73
List Price:  Bs484.05
You save:  Bs138.32
COP$214,700.96
List Price:  COP$300,598.53
You save:  COP$85,897.56
₡25,644.78
List Price:  ₡35,904.74
You save:  ₡10,259.96
L1,297.12
List Price:  L1,816.07
You save:  L518.95
₲399,856.59
List Price:  ₲559,831.23
You save:  ₲159,974.63
$U2,134.71
List Price:  $U2,988.76
You save:  $U854.05
zł189.09
List Price:  zł264.74
You save:  zł75.65
Already have an account? Log In

Transcript

Okay in our programming we have a while loop So, say I want to clear what I can do something like this. Ah well i equal zero. Okay? I less and Sal 100,000 okay then I will print i mean i and then let's see I equals i plus one in our use case assignment okay then a Ctrl A and then right. So I will be doing the same thing as the for loops. So let's say for these are global i is zero while i is less than 1000 the I will print these are great times I move through these a while loop will I increase or add one to this I, so let's say R equals zero.

So, VA i less than one. So, zero is less than 1000 will print I, which I mean I will print zero and i equals i plus one. So, I will be one zero plus one. So, I will becomes one. So, your loop again come to here. So, one is less than 1000 So, I printed out one then i go i plus one, so, one plus one becomes two, so, you will come to two is less than 1000 then you will continue to look back to see, I saw more than 1000 or equal to 1000.

So, if I Let's say I forget to put these i equal i plus one, then we will have a infinite loop. So, I go usually for myself I prefer Paulo, ah, we use this while loop we will be we will have to be careful about this infinite loop.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.