//Structures
#include <stdio.h>
#include <string.h>

struct car			//blueprint
{
int mileage;
char make[15];
char model[15];
int topspeed;
float price;
};

void main()
{
car gaynorscar;			//declare type car
car dreamcar;
gaynorscar.mileage=36000;
strcpy(gaynorscar.make,"Nissan"); //bit different for strings
strcpy(gaynorscar.model,"Micra");
gaynorscar.topspeed=72;
gaynorscar.price=300;

dreamcar.mileage=4;
strcpy(dreamcar.make,"Porsche");
strcpy(dreamcar.model,"911");
dreamcar.topspeed=180;
dreamcar.price=5.50;

printf("My dream car is %s\n",dreamcar.make);
printf("%s\n",dreamcar.model);
printf("And its top speed is %d\n",dreamcar.topspeed);


}