#include <stdio.h>
#include <math.h>

typedef struct person
{
    char name[20];
    char phoneNum[20];
    int age;
} Person;

void ShowPersonInfo(Person man)
{
    printf("name: %s \n",man.name);
    printf("phoneNum: %s \n",man.phoneNum);
    printf("age: %d \n",man.age);
}

Person ReadPersonInfo(void)
{
    Person man;
    printf("name? ",man.name); scanf("%s", man.name);
    printf("phoneNum? ",man.phoneNum); scanf("%s", man.phoneNum);
    printf("age? ",man.age); scanf("%d", &man.age);
    return man;
}
int main()
{
    Person man=ReadPersonInfo();
    ShowPersonInfo(man);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: