I'm trying this "hello world" program and every time I compile the SC, this error message appears:
C:\Program Files\Miracle C\hello.c: line 1: Parse Error, expecting `SEP'
'1: include 2: 3: int radius, area'
aborting compile
2006-09-04
01:05:02
·
6 answers
·
asked by
login_beta23
1
in
Computers & Internet
➔ Programming & Design
here's the source code:
1: #include
2:
3: int radius, area;
4:
5: main()
6: {
7:printf("Enter radius (i.e. 10):" );
8:scanf( "%d", &radius );
9:area = 3.14159 * radius * radius;
10:printf( "\n\nArea = %d", area );
11:return 0;
12: }
2006-09-04
23:38:25 ·
update #1