#include <stdio.h>

struct Person {
    char name[50];
    int age;
};

int main() {
    struct Person person;

    printf("Enter name: \n");
    scanf("%s", person.name);

    printf("Enter age: \n");
    scanf("%d", &person.age);

    printf("\nPerson: %s, Age: %d\n", person.name, person.age);

    return 0;
}

Embed on website

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