// Test integers publicstaticint testIntAddSub() { int a, b, c, d;
a = 3;
b = 5 - a; while (true) {
c = a + b;
d = 5;
a = d - b; if (c <= d) {
c = d + 1;
} else { return c;
}
b = 2;
}
}
publicstaticint testIntMult() { int a = 6; int b = 9 - a; int c = b * 4;
if (c > 10) {
c = c - 10;
} return c * 2;
}
publicstaticint testIntDiv() { int a = 30; int b = 9 - a / 5; int c = b * 4;
if (c > 10) {
c = c - 10;
} return c * (60 / a);
}
publicstaticint testIntMod() { int a = 5; int b = a % 3; int c = a % 0; return b + c;
}
publicstaticint testIntPhi() { int a = 37; int b = 3; int c = (b == 0) ? 0 : (a / b); return c;
}
// Test floats publicstaticfloat testFloatAddSub() { float a, b, c, d;
a = 3;
b = 5 - a; while (true) {
c = a + b;
d = 5;
a = d - b; if (c <= d) {
c = d + 1;
} else { return c;
}
b = 2;
}
}
publicstaticfloat testFloatMult() { float a = 6; float b = 9 - a; float c = b * 4;
if (c > 10) {
c = c - 10;
} return c * 2;
}
publicstaticfloat testFloatDiv() { float a = 30; float b = 9 - a / 5; float c = b * 4;
if (c > 10) {
c = c - 10;
} return c * (60 / a);
}
publicstaticfloat testFloatMod() { float a = 5; float b = a % 3; float c = a % 0; return b + c;
}
publicstaticfloat testFloatPhi() { float a = 37; float b = 3; float c = (b == 0) ? 0 : (a / b); return c;
}
// Test doubles publicstaticdouble testDoubleAddSub() { double a, b, c, d;
a = 3;
b = 5 - a; while (true) {
c = a + b;
d = 5;
a = d - b; if (c <= d) {
c = d + 1;
} else { return c;
}
b = 2;
}
}
publicstaticdouble testDoubleMult() { double a = 6; double b = 9 - a; double c = b * 4;
if (c > 10) {
c = c - 10;
} return c * 2;
}
publicstaticdouble testDoubleDiv() { double a = 30; double b = 9 - a / 5; double c = b * 4;
if (c > 10) {
c = c - 10;
} return c * (60 / a);
}
publicstaticdouble testDoubleMod() { double a = 5; double b = a % 3; double c = a % 0; return b + c;
}
publicstaticdouble testDoublePhi() { double a = 37; double b = 3; double c = (b == 0) ? 0 : (a / b); return c;
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.7 Sekunden
(vorverarbeitet am 2026-06-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.