

Check out Pramp:
Let’s talk about nested for loops and making triangles and pyramids. Woo!
Read the blog:
Instagram:
Twitter:
Facebook:
More content:
Support me!
~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~
Subscribe to my newsletter:
Donate!:
Artist: ARTISS
Title: Tropical Summer
This video is sponsored by the illuminate …hahaha
ur voice gets higher pitched in each video
idk man i dont like j or k! i wouldve used c for clare
Is there anyone explaining the concept of 3 nested for loops??
Hey there! Helpful video, keep up the good work! Watch my free Java Essentials programming series to become a skilled Java programmer!
ππ @ βitβs all on one line…improved codeβ
Where can I find the Illuminati link?
1:01 Illuminati wants to know your location
1:01 Illuminati wants to know your location
I'm relearning all of this from almost 15 years ago at this point and the triangle challenge was a fun little lab to solve after the video was done.
1:44 to skip intro
I don't understand why sysout at the last make a very big difference if we didn't write it.. because, inside the parentheses is empty.. can anyone help me? Sorry im new to programming
Hullo,
what is the problem with this code?
public class Main {
public static void main(String[] args) {
for(int i = 1; i < 11; i++){
for(int k = 1; k < 11; k++); {
System.out.println(k);
}
System.out.println();
}
}
}
It apparently is unable to resolve 'k' to a symbol. I tried making 'k' a variable outside of the two forloops and inside of the main method, and the error that resulted was 'Not a statement'.
This could be happening because I'm using the IntelliJ IDE. I used Eclipse for a while, but it stopped working for no reason.
//Nepalese flag
// π
public class MySweetProgram {
public static void main(String[] args) {
int i;
int k;
for (i=9; i >= 0; i–) {
for (k=i;k>=0;k– ) {
System.out.print(k + " ");
}
System.out.println();
}
for (i=0; i <= 9; i++) {
for (k=0; k <= 9;k++ ) {
if (k > i) {
System.out.print("");
}
else
{
System.out.print(k + " ");
}
}
System.out.println();
}
}
}
Any reason why your for loops count backwards rather than forwards?
So if I'm seeing it correctly, the numbers are printed in horizontal direction and than the next line comes right?
Nested loops make my head hurt.
Finally
Thank you π