my teacher really doesn't teach us java that much and gives us stuff to do when no one has any idea how to do it.
ok i have a couple of questions. ok 3 really.
ok the first one is this.Which producesCode:{public class exercise5b{ public static void main(String args[]) { for(int row=10;row<=10;row--) { for (int ast=1;ast>=row;ast++) System.out.print('*'); System.out.println(); } } }
and the question is how to make it look like thisCode:********** ********* ******** ******* ****** ***** **** *** ** *
I can not figure this out if it saved my life. I have tried to change everything i can and i can not get it like that.Code:********** ********* ******** ******* ****** ***** **** *** ** *
Q#2.
Anyone know how to make a for loop to figure out the Pythagorean triple of triangles all no lager that 500?
and #3.
basically kinda like the first one where i have to write a program to make 4 seperate triangles right next to each other. with for loops of course.
example.
I appreciate any help at all. i really do. Thank you again.Code:* ********** ********** * ** ********* ********* ** *** ******** ******** *** **** ******* ******* **** ***** ****** ****** ***** ****** ***** ***** ****** ******* **** **** ******* ******** *** *** ******** ********* ** ** ********* ********** * * **********


Reply With Quote


Bookmarks