I am new to programming and I am trying to learn, so I am trying to write something. But there is this error saying: expected ';' BEFORE number constant. Does anyone know why? Thanks. As I said I am new to programming so do not be amazed at my extremly simple code :D
struct Country{
char name[50];
char capital[50];
char statehead[50];
int pop;
double area;
};
int main(){
struct Country stat1;
stat1.area = 78 866.2;
stat1.pop = 10 560 000;
strcpy( stat1.name, "Ceska republika");
strcpy( stat1.capital, "Praha");
strcpy( stat1.statehead, "MilosZeman");
printf("%d", stat1.area);
return 0;
}