27 lines
440 B
C++
27 lines
440 B
C++
#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);
|
|
} |