inital commit, adding all school projects
This commit is contained in:
20
KalorienRechner/main.cpp
Normal file
20
KalorienRechner/main.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
|
||||
double gewicht = 0;
|
||||
double strecke = 0;
|
||||
double VerbrauchteKalorien = 0;
|
||||
|
||||
cout << "Wie viel wiegst du? ";
|
||||
cin >> gewicht;
|
||||
|
||||
cout << "Wie weit bist du gelaufen? ";
|
||||
cin >> strecke;
|
||||
|
||||
VerbrauchteKalorien = 0.9 * gewicht * strecke;
|
||||
cout << "Du hast ca. " << VerbrauchteKalorien << " verbrannt." << "\n";
|
||||
cin.get(); cin.get();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user