Compiling C in Fedora Core 2
I have a very simple program that I am trying to compile for a class project. I'm using fedora core 2 and gcc as the compiler. I am using gedit to create the file. Here is the program.
/* This is sample.c program */
/* your name*/
#include <stdio.h>
int main()
{
int hours=40;
int rate=20;
int pay=0;
pay = hours * rate;
printf (�\nHere is the pay amount: %d� , pay);
return (0);
}
When i try to compile the program it returns several errors. Just curious what I am doing wrong. Any help is appreciated.
|