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

struct car     //blueprint for a car
{
char make[20];
char model[20];
int noofwheels;
char colour[50];
float enginesize;
int value;
};

void main()
{
car gaynorscar;		//declare instance of structure
car dreamcar;		//declare instance of structure
int total;
gaynorscar.noofwheels=4;
gaynorscar.enginesize=1.2;
strcpy(gaynorscar.make,"Nissan");   //strings
strcpy(gaynorscar.model,"Micra");
strcpy(gaynorscar.colour,"Turquoise");
gaynorscar.value=20;

dreamcar.enginesize=1.6;
dreamcar.noofwheels=4;
dreamcar.value=500;
strcpy(dreamcar.make,"Delorean");
strcpy(dreamcar.model,"TimeMachine");
strcpy(dreamcar.colour,"Silver");

printf("No of wheels: %d\n",gaynorscar.noofwheels);
printf("Make of car: %s\n",gaynorscar.make);
printf("Model of car: %s\n",gaynorscar.model);

total=dreamcar.value + gaynorscar.value;
printf("Total value of cars: %d",total);

}