Sunday, April 19, 2009

How to write a nest of loops taht causes the following output to be printed.1121231234123121?

nested for loop using java

How to write a nest of loops taht causes the following output to be printed.1121231234123121?
1 12 123 1234 123 12 1





Are you sure that%26#039;s the sequence?





Okay, look at the top element of each one.





1 2 3 4 3 2 1





Can you generate that for your outside loop?





hint: try 12 - abs(6 - x) and see what you get
Reply:By yourself... in a room... without help... because that%26#039;s how your teacher would want it...





Honestly, if you%26#039;re asking people to do your work for you, already... go see your counselor on Monday and look into switching majors...



skin tags

No comments:

Post a Comment