neue pring funktion erstellt

This commit is contained in:
2025-10-04 09:23:08 +02:00
parent 8499c3ee48
commit 17b1c0aca8

View File

@@ -2,9 +2,19 @@
int number = 12; int number = 12;
void print_number (int);
main() main()
{ {
std::cout << "Hallo Welt" << std::endl << number << std::endl; std::cout << "Hallo Welt" << std::endl << number << std::endl;
std::cout << "experimentelle und evtl nicht fehlerfreier Code" << 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;
} }