Zum Inhalt springen

Sandbuechse

Mitglieder
  • Gesamte Inhalte

    3
  • Benutzer seit

  • Letzter Besuch

  1. danke! aber bei 1. brüchte ich das, obwohl es natürlich anders einfacher is als methode... also mit void usw... weil das thema der stunde war....
  2. also es sind im ersten code laut meinem lehrer syntaktische fehler und im 2. soll etwas mit den funktionsaufrufen nicht stimmt mehr hat er mir dazu nicht gesagt...
  3. Hallo, ich war heute mal am programmieren und habe auch was zu stande gebracht, nun funktioniert es nicht! was habe ich falsche gemcaht?? kann mir hier zufällig wer weiterhelfen? void maximum (int a, { if (a> maximum = a; else maximum = b; } public static void main (String args[]) { int x=3, y = 5; System.out.println("Von "+x+" und "+y+" ist "+maximum+"die größere Zahl.") } [/code] 2.Code: [code] void gegenzahl(int a, boolean anw) { if (anw) {a = -a;} } float kehrzahl(float a) { float b = 1 / a; return b; } public static void main (String args[]) { int c = 3, d = 4; int e = gegenzahl (5, false); gegenzahl(true, c); int f = kehrzahl (c/d); float g = kehrzahl(c, d); float h = kehrzahl(gegenzahl(-3, true)/10); wäre cool wenn mir wer weiterhilft!

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...