Aufgabe: Bezinverbrauch pro 100 km
Drehzahl in 1000 rpm
Fuktion f(x)= 14/9x²-70/9x+128/9
Wertetabelle mit x werten zwischen 1-6 bei einer schrittweite von 0,5
a) Programm mit hilfe einer for schleife erstellen
Programm mit hilfe einer do schleife erstellen
a)#include <stdio.h>
#include <conio.h>
#include <iostream.h>
void main(void)
float x;
for(x=1; x<=6; x=x+0.5)
{
printf ("%f\t",x*x*14/9-70/9*x+128/9);
}
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
int main(void)
float x=1;
do
{ printf("%\t", x*x*14/9-70/9*x+128/9) ;
x=x+0.5;
}
---------------------------
Bekomme Fehlermeldungen wie: x ist bereits deklariert , Fehler in der deklarationssyntax
Das hab ich bisjetzt, komm aber nicht weiter...:upps
bin kein Entwickler aber schreibe bald eine Klausur in der Berufsschule
danke im vorraus