20 lines
340 B
C++
20 lines
340 B
C++
//Funktionsdeklaration ax_funktions.hpp
|
|
|
|
#pragma once
|
|
|
|
namespace ax{
|
|
void print_number(int x)
|
|
{
|
|
std::cout << "Die Zahl ist: " << x << std::endl;
|
|
std::cout << "Das doppelte der Zahl ist: " << x*2 << std::endl;
|
|
}
|
|
|
|
|
|
int sqrt(int x){
|
|
return x*x;
|
|
}
|
|
|
|
char shift(char x){
|
|
return x-1;
|
|
}
|
|
} |