@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"...
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.
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:
you forgot max = ++max hehe
adrian5b 3 months ago
you are a star thank you bra
ayanda79 7 months ago
11110010 10001001 11001101
JesusMiddleEastGuy 1 year ago
how come your program ran without you writing hello in the form "hello"? are you using some kind of automated complier?
matero99 1 year ago
@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"...
blenderobsession321 6 months ago
will you please make a GUI while loop .. and a tutorial also for that..
wayami 2 years ago
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
cwalkerxtreme 3 years ago
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++)
Lordmiguel 3 years ago
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.
vb6help 3 years ago
VERY good m8 it help me a lot thanks
bolivarknight 4 years ago
Superb. Nice to find some really compact and easy to understand videos on Loops!
Nice one.
sallyann22 4 years ago 4
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
wolva 4 years ago
Good job very helpful
Kandytank 4 years ago
have you made any games with java?
Shermz1234 4 years ago