Fortune Telling Collection - Fortune-telling birth date - Named fortune-telling c language

Named fortune-telling c language

Code:

# Contains? & ltstdio.h & gt

struct? Personnel {

Charles? Name [10];

int? Age;

int? High; //? Unit centimeter

Floating? Weight; //? Unit kilogram

} p;

int? main()? {

Printf ("Please enter name, age, height cm and weight kg (separated by spaces): \ n");

scanf("%s? %d? %d? %f "、& ampp . name & amp; Age and gender; p . high & amp; Weight);

Printf ("Your personal information: name: %s, age: %d, height: %dcm, weight:% 0.2 fkg \ n", p.name, p.age, p.high, p.weight);

Return? 0;

} Run: