Bismark
Erfahrenes Mitglied
Hi,
Ich soll ein Programm programiren, bei dem eine eingegebene Zahl belibig oft Wiederholt wird, sooft der Benutzer es will.
Das Problem liegt bei:
float antwort
char antwort
Ich wäre dankbar wenn jemand mir helfen würde!!
Ich soll ein Programm programiren, bei dem eine eingegebene Zahl belibig oft Wiederholt wird, sooft der Benutzer es will.
Code:
#include <conio.h>
#include <iostream>
using namespace std;
int main()
{ // Beginn Hauptprogramm
int zahl1;
float antwort;
cout<<" Bitte geben Sie eine Zahl ein: "<<endl;
cin>>zahl1;
char antwort;
do
{ // Beginn Schleifenblock
cout<<"Die eigegebene Zahl betraegt: "<<zahl1<<endl;
cout<<endl<<"Die Zahl nochmal ausgeben? -j/n"<<endl;
cin>>antwort;
} //Ende Schleifenblock
while (antwort !='n');
return 0;
} //Ende Hauptprogramm
Das Problem liegt bei:
float antwort
char antwort
Ich wäre dankbar wenn jemand mir helfen würde!!