Return to Video

Or - Intro to Java Programming

  • 0:00 - 0:04
    Now you've seen a couple examples of the use of the and operator, so how about
  • 0:04 - 0:10
    or? We'll put or to use for drawing this Charlie flag. Again, here is my sketch
  • 0:10 - 0:15
    and we have blue at the top or the bottom. If Y is less than height over 5 or
  • 0:15 - 0:21
    if Y is height times 4 over 5 or larger, then the pixel is blue. So we'll put
  • 0:21 - 0:25
    an or operator here to join these two conditions. Once again, it's your turn to
  • 0:25 - 0:29
    complete this program. Use the or operator for the blue ones, and for the
  • 0:29 - 0:36
    middle strip here, you get to use the and operator one more time. Go for it.
Title:
Or - Intro to Java Programming
Description:

more » « less
Video Language:
English
Team:
Udacity
Project:
cs046: Intro to Programming
Duration:
0:37
Dejan Trajkovic edited English subtitles for 10-11 Or
Udacity Robot edited English subtitles for 10-11 Or
Udacity Robot edited English subtitles for 10-11 Or
Udacity Robot edited English subtitles for 10-11 Or
Cogi-Admin edited English subtitles for 10-11 Or
Cogi-Admin edited English subtitles for 10-11 Or
Cogi-Admin edited English subtitles for 10-11 Or
Cogi-Admin added a translation

English subtitles

Revisions Compare revisions