diff --git a/main.cpp b/main.cpp index b164a72..2f0e8f5 100644 --- a/main.cpp +++ b/main.cpp @@ -2,9 +2,19 @@ int number = 12; +void print_number (int); + main() { std::cout << "Hallo Welt" << std::endl << number << std::endl; std::cout << "experimentelle und evtl nicht fehlerfreier Code" << std::endl; + + print_number(20); // neue Funktion unsicher und unvollständig +} + + + +void print_number(int x){ + std::cout << x << std::endl; } \ No newline at end of file