Just trying to lay the code down and start seeing the mistakes along the way and the first thing I'm getting in the compiler is "
Code:
$ gcc -ansi -std=c99 -pedantic -ggdb -lm program5.c
program5.c: In function ‘main’:
program5.c:24:8: error: too many arguments to function ‘print_line’
print_line (sin(i/(3.1416*2))*20+21,5);
^
program5.c:7:5: note: declared here
int print_line(int i) {
^
"
Code:
# include <stdio.h>
# include <math.h>
int print_line(int k) {
k = 0;
while (k < 41) {
printf(" ");
k = k + 1;
}
printf("****\n");
return 0;
}
int main (void) {
int i = 0;
while (i < 41) {
print_line (sin(i/(3.1416*2))*20+21,5);
i = i + 1;
}
return 0;
}
sooooo... I'm confused in what way it's telling me I'm dumb