struct moterbike {
char motorbike[20];
char brand[10];
char color[10];
char price[10];
char promotion[100];
char safety[100];
char instruction [100];
char suggestion[100];
}Transformers;
void input_data() {
printf ("What motorbike is you like :\n");
scanf ("%s",&Transformers.motorbike);
printf ("What brand motorbike you like:\n");
scanf ("%s",&Transformers.brand);
printf ("What color motorbike is you like :\n");
scanf ("%s",&Transformers.color);
printf ("What price of motorbike :\n");
scanf ("%s",&Transformers.price);
printf ("Promotion of year :\n");
scanf ("%s",&Transformers.promotion);
printf ("system safety motorbike :\n");
scanf ("%s",&Transformers.safety);
printf ("instruction use motorbike :\n");
scanf ("%s",&Transformers.instruction);
printf ("suggestion of motorbike :\n");
scanf ("%s",&Transformers.suggestion); }
void show_data(){
printf("\n\tThe Motorbike\t\n");
printf("Motorbike %s\n",Transformers.motorbike);
printf ("Motorbkie Brand %s\n",Transformers.brand);
printf ("Motorbkie color %s\n",Transformers.color);
printf ("Motorbkie Price %s\n",Transformers.price);
printf ("Motorbkie Promotion %s\n",Transformers.promotion);
printf ("Motorbkie system safety %s\n",Transformers.safety);
printf ("Motorbkie instruction %s\n",Transformers.instruction);
printf ("Motorbkie suggestion %s\n",Transformers.suggestion);}
main(){input_data();show_data();}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น