inital commit, adding all school projects
This commit is contained in:
27
FlächeeinesRechtecks/main.cpp
Normal file
27
FlächeeinesRechtecks/main.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include <iostream>
|
||||
#include <windows.h>
|
||||
#include <iomanip>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int rechteck(const int a, const int b) {
|
||||
return a*b;
|
||||
}
|
||||
|
||||
int main() {
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
cout << fixed << setprecision(2);
|
||||
|
||||
int input1, input2;
|
||||
|
||||
cout << "Input 1: \n";
|
||||
cin >> input1;
|
||||
cout << endl;
|
||||
|
||||
cout << "Input 2: \n";
|
||||
cin >> input2;
|
||||
|
||||
system("cls");
|
||||
|
||||
cout << "Ergebnis: " << rechteck(input1, input2);
|
||||
}
|
||||
Reference in New Issue
Block a user