Problem mit Programm
-
Irgendwie geht das nicht.
int main() {
᠍ ᠍ double zahl;
᠍ ᠍ cout ≪ "Geben sie eine Zahl ein";
᠍ ᠍ cin ≫ zahl;᠍ ᠍ if(zahl * ⅜ > 200) {
᠍ ᠍ ᠍ ᠍ cout ≪ "Zahl mal " ≪ ⅜ ≪ " ist größer 200";
᠍ ᠍ }᠍ ᠍ return 0;
}
-
#include <iostream> using namespace std; int main() { double zahl; cout << "Geben Sie eine Zahl ein"; cin >> zahl; if ( ( zahl * 3/8 ) > 200 ) { cout << "Zahl mal 3/8 ist größer als 200"; } return 0; }Also so sollte es funktionieren. Was genau heißt bei dir "geht nicht"? Poste mal die Fehlermeldungen deines Compilers.
-
Universal-Coder schrieb:
Irgendwie geht das nicht.
Stimmt, aber wie lautet deine Frage!?
Greetz, Swordfish