inital commit, adding all school projects

This commit is contained in:
2026-04-09 06:47:58 +02:00
commit 4175258de7
185 changed files with 6947 additions and 0 deletions

27
BMI/main.cpp Normal file
View File

@@ -0,0 +1,27 @@
#include <iostream>
#include <windows.h>
#include <iomanip>
using namespace std;
float BMI(float a, float b) {
return a/(b*b);
}
int main() {
SetConsoleOutputCP(CP_UTF8);
cout << fixed << setprecision(2);
cout << "BMI-RECHNER" << endl;
cout << "-----------" << endl;
float Gewicht,Groesse;
cout << "bitte geben Sie die geforderten Daten an!" << endl;
cout << left << setw(20) << "Gewicht(in Kg):";
cin >> Gewicht;
cout << left << setw(22) << "Größe(in M):";
cin >> Groesse;
cout << endl << "BMI: \t\t\t" << BMI(Gewicht, Groesse);
return 0;
}