Select Git revision
projekte.txt
Forked from
Peter Gerwinski / es
Source project has a limited visibility.
aufgabe-3.c 240 B
#include <string.h>
int fun_1 (char *s)
{
int x = 0;
for (int i = 0; i < strlen (s); i++)
x += s[i];
return x;
}
int fun_2 (char *s)
{
int i = 0, x = 0;
int len = strlen (s);
while (i < len)
x += s[i++];
return x;
}