I'm new to c programming. I'm trying to print numbers 1 to 10.
#include <stdio.h>
int main(){
int i;
for(i=1; i<11; i++){
printf("%s\n", i);
}
getchar();
}
It compiles in powershell when I type: gcc .\forloop.c but when I try to run the program with ./a I get this error message:
Any help would be appreciated.