Added: 4 years ago
From: gorilla3d
Views: 24,157
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • you forgot max = ++max hehe

  • you are a star thank you bra

  • 11110010 10001001 11001101

  • how come your program ran without you writing hello in the form "hello"? are you using some kind of automated complier?

  • @matero99 dumbass... look, String hello = "Hello World"; is what hello is, so if he tells it to print the string hello, it prints what the string hello is, which is "Hello World"...

  • will you please make a GUI while loop .. and a tutorial also for that..

  • sorry but just correcting u in the for statement when u did max<=10

    when max=0

    it prints it out 11 times

    probabally u just made a mistake because it starts from 0-10 thats actually 11 times

  • that's part of the c, the c++, and java, all the numbers begin in 0, in the arrays is the same, begin in x[0], not in x[1], if you wanna just 10 times just type this: for(max=0;max<10;max++)

  • of course it does that, because he didnt make it max < 10 which means that it would stop adding when it was 10 but <= means that if it is or is less then 10 it will add which makes it 11 times.

  • VERY good m8 it help me a lot thanks

  • Superb. Nice to find some really compact and easy to understand videos on Loops!

    Nice one.

  • distance=speed * time

    for example, if a train travels 40 miles per hour for 3 hours, the distance traveled is 120 miles. write a program that asks for the speed ofa vehicle(in miles per hour) and the number of hours it has traveled. it should use a loop to display the distance a vehicle is traveling at 40 mph for a 3 hour time period. it should display a report similar to the one that follows:

    hour - 1 distance - 40

    hour- 2 distance- 80

    hour- 3 distance - 120

  • Good job very helpful

  • have you made any games with java?

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more