Disclaimer!
If you find any mistakes in this post or you don't know what to do at a specific point? Feel free to write me a comment! 👍
Greets from Germany ✌️
| Last Part | Next part |
|---|---|
| <- #05 First coding challenges | #06 Methods and return statements -> |
This is the another half of the fifth part. Here are the solutions for the challenges.
for(int i = 0; i <= 10; i){
for(int j = 0; j <= i; j){
System.out.print("t ");
}
System.out.println();
}
int x = 0;
while(x <= 10){
System.out.println(x);
x++;
}
double o = 10;
if(o <= 0.0){
System.out.println("ERROR: o is too small");
}else{
System.out.println("Calculating the radius out of o");
System.out.println("-./(o / (4PI))\\");
System.out.print("-./( " + o + " / (4PI))\\ = ");
System.out.println(Math.sqrt(o/(4*Math.PI)));
}
| Last Part | Next part |
|---|---|
| <- #05 First coding challenges | #06 Methods and return statements -> |