CSC115 · 2080 · 5 marks
Trace the output ```c #include <conio.h> #include <stdio.h> void main() { int i = 0, k; for (k = 5; k >= 0; k--) { i = i + k; } printf("%d\t", i); getch(); } ```
Trace the output
#include <conio.h>
#include <stdio.h>
void main() {
int i = 0, k;
for (k = 5; k >= 0; k--) {
i = i + k;
}
printf("%d\t", i);
getch();
}
[5]
C ProgrammingChapter 5: Control StatementDecision Making and LoopingNumerical: trace loop output