Newbie "for/Looping" help please
either i'm incredibly dull... or this is really hard.... i cant seem to figure out the for statement at all...
i did a for statement for one of my labs.. which i understood and then i was told to do this other one cause not so much people got the for statement... so i was just wondering if someone could help me out here... maybe a lil push.. or full detail explain!! thanks so much in
oh guess this might help
" http://zernike.uwinnipeg.ca/~s_liao/Courses/1903/Lab08.pdf " the lab that i have to do.. if your thinking "why should we get his work done for him that lazy guy" it's not really to do my work.. i really wanna learn how to do this.. and the prof wont tell us.. plus i can't understand him at all
Message was edited by:
Chopkilla
If you don't understand it at all, not even a little tiny bit, then drop the class and give up. You might want to quit college in general, or at least take an ESL class (English as a Second Language) first. It's pretty simple and geared towards beginners. Or maybe an introduction to using computers, what a computer language is, etc.
If, however, you actually understand it at least a little (which is more probable) then ask about the parts you don't get.
k to make the lines go diagnol.. i don't understand that.. i know this much so far
public class num {
public static void main(String[] args){
for (int i = 1; i <= 9; i++)
}
}
that's basically all i know.... i just started using for statements this week.. it's already hard to explain myself..
First that will not compile because you do not have an opening brace for the for loop.Second, what are you trying to do inside the loop? Print something? If you can't explain it to yourself, think about how hard it is for us to understand you.
Im just guessing, but I think he needs to print this:
*
*
*
*
*
*
*
*
*
*
In your for loop, you need to print a certain amount of spaces, followed a an asterisk. Count the amount of spaces before each asterisk to see if you can figure it out.