There are a few bugs. 1) You are in a C# repl, but what you have actually written is C. 2) stdio should be replaced with stdio.h 3) You don't need to specify void if the method takes no arguments. 4) Strings should have double quotes around them - single quotes are for chars.
So, the fixed code is (in a C repl):
#include <stdio.h>
int main ()
{
printf("We are to learn correct");
printf("C language here");
return 0;
}
Repl link here. Please mark this as the answer if it solved your problem :)
#include <stdio>
int main (void)
{
printf('We are to learn correct');
printf('C language here' );
return 0;
}
There are a few bugs.
1) You are in a C# repl, but what you have actually written is C.
2)
stdio
should be replaced withstdio.h
3) You don't need to specify
void
if the method takes no arguments.4) Strings should have double quotes around them - single quotes are for
char
s.So, the fixed code is (in a
C
repl):Repl link here.
Please mark this as the answer if it solved your problem :)