Skip to content

Instantly share code, notes, and snippets.

View Friedjof's full-sized avatar
👨‍💻
at work

Friedjof Noweck Friedjof

👨‍💻
at work
View GitHub Profile
class Zahl:
def __init__(self, n) -> None:
self.n = n
def teiler(self) -> iter:
for i in range(1, self.n):
if self.n % i == 0:
yield i
def ist_prim(self) -> bool:
@Friedjof
Friedjof / float2string.c
Last active May 9, 2023 21:33
Convert a float number to a char array in C
// Friedjof Noweck
// 2021-10-30 Sat
float potenzieren(int basis, int potenz);
void float2string(float zahl, char* text);
int stringLength(char* given_string);
float absFloat(float value);
int main()
{