All pastes #796817 Raw Edit

prog

public text v1 · immutable
#796817 ·published 2007-11-25 13:25 UTC
rendered paste body
     return ( spanung );

  }



  double berechne_strom ( double u2,double i2 )

  {

     double strom;

     strom = ( u2 / i2 );

     return ( strom );

  }

  double berechne_widerstand( double i3,double u3 )

  {

     double widerstand;

     widerstand = ( u3 / i3 );

     return ( widerstand );


  }


  int main()  und hier fehler
  {

     double u1,i2,r3;                                                             /* AUSGABE*/
     double i1,r1,u2,r2,i3,u3                                                     /*EINGABE*/


     printf ("\n###############################################\n"); hier  fehler
     printf ("Berechnug der Elektrischen Werte einer Schaltung\n");
     printf ("################################################\n");


     printf ("Bitte geben sie den strom in amper ein");
     scanf  ("%f",&i1);
     printf ("Bitte Geben sie den widerstand in ohm ein");
     scanf  ("%f",&r1);
     printf ("Bitte geben sie das spanung in volt  ein");
     scanf  ("%f",&u2);
     printf ("Bitte Geben sie das strom in ohm ein");
     scanf  ("%f",&i2);
     printf ("Bitte geben sie das spanung in amper ein");
     scanf  ("%f",&u3);
     printf ("Bitte Geben sie den strom in ohm ein");
     scanf  ("%f",&i3);

     u1 = berechne_spanung (r1,i1);
     i2 = berechne_strom (u2,i2);
     r3 = berechne_widerstand (u3,i3);

     printf ("Die   spanung betraegt %f volt", u1);
     printf ("Die   strom betraegt %f amper", u1);
     printf ("Der   widerstand betraegt %f ohm", i2);

  return ( 0 );

 }

     un das sin die fehler ich weiss nicht genau was ich falsch gemacht  hab  könnt ihr mir  bite helfen    assignment19.c: In function âmainâ:
assignment19.c:59: error: syntax error before âprintfâ
 

by Vamp898

beim zweiten double in int main() fehlt das ;