Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Could someone tell e why ths code won\'t compile and what I need to do in orde t

ID: 3706195 • Letter: C

Question

Could someone tell e why ths code won't compile and what I need to do in orde to compile it

ee1 401 26@aclinux4?: ~/project-1 [ee140126@aclinux4v project_1]S gcc theproject.c tmp/cc47t34Q.o: In function main' theproject.c:(.text+0x23): undefined reference to collect2: ld returned 1 exit status [ee140126Gaclinux4v project_11s vi theproject.c # include ?int f' int main () int N intf ("what is you N") scanf ("%d", &N;) ; double x[N,YIN] printf ("Enter the value ofxand y) int i fori-0iKN:i++) scanf ( " % f",&x; [i]); scanf("%f",&y; [i]); y:-, sum xy-0; double sum x- , sum int j: for (j=0;j

Explanation / Answer

after int N write printf in place of intf it is missed out just write printf and also include math.h header file

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote