The system keeps telling me that I do not have enough arguments to format the string, I am also getting a
Error LNK2019 unresolved external symbol _main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) line 1 error
I do not know what this means. please help.
#include<stdio.h>
#include<stdlib.h>
Main() {
int score, sum = 0;
printf("Enter a test score (-1 to quit):");
scanf_s("%i", &score);
while (score != -1) {
sum = sum + score;
printf("Enter a test score (-1 to quit):");
scanf_s("%i", &score);
}
printf("\n(The sum of the scores is): %i\n");
system("pause");
}