Java:
package satz;
public class haupt {
public void eingabe() {
int a;
int b;
int c;
int d;
int ausgabe ;
a= 0;
b =0;
c =0;
d = 0;
ausgabe = c*2;
for (b=0;((a*2)*(b*2)==ausgabe);b++){
if (b<=9){
a++;
b=0;
}
if ((a*2)*(b*2)==ausgabe){
System.out.println (ausgabe);
}
}
}
}
Hallo ich muss mit einem Algorithmus (Implementation), dabei muss ich den Satz des Pythagoras anwenden.
also (a*2)*(b*2)==(C*2)
Ich muss also die Triples herausfinden :S.
Was mache ich falsch ?