mirror of
https://gitlab.gwdg.de/j.hahn02/university.git
synced 2026-01-01 06:44:25 -05:00
refactor various files
This commit is contained in:
14
S1/GdCP/uebung/a02-testing.c
Normal file
14
S1/GdCP/uebung/a02-testing.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int sequence(int x, int n);
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
||||
int x = 3;
|
||||
int min = -2, max = 8;
|
||||
|
||||
for (int n = min; n <= max; n++)
|
||||
printf("sequence(%d, %d) == %d\n", x, n, sequence(x,n));
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user