Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- /**
- * 9. Ändern Sie die Umrechnung so, dass Bodenmaß in Grad umgerechnet werden!
- *
- */
- int main() {
- /*
- * VARIABLES
- */
- float f_bogenmass;
- float f_grad;
- /*
- * INPUT
- */
- cout << "Berechnung einen Winkel in Bogenmass in Grad." << endl;
- cout << "Bitte geben Sie den Winkel in Bogenmass ein: ";
- cin >> f_bogenmass;
- /*
- * LOGIC
- */
- f_grad = f_bogenmass * 180 / 3.1416;
- /*
- * OUTPUT
- */
- cout << endl;
- cout << "ERGEBNIS" << endl;
- cout << f_bogenmass << " Bogenmass sind " << f_grad << " Grad" << endl;
- /*
- * END OF PROGRAM
- */
- getchar();
- getchar();
- return (0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement