#include <stdio.h>
int main() 
{
    struct student
    {
        int roll_no;
        char branch[100];
        char name[100];
        float fees;
        
    };
    struct student stud;
    printf("enter the roll_no:\n");
    scanf("%d",&stud.roll_no);
    printf("enter the branch:\n");
    scanf("%s",&stud.branch);
    printf("enter the name:\n");
    scanf("%S",&stud.name);
    printf("enter the fees:\n");
    scanf("%f",&stud.fees);
    
    printf("student details\n");
    printf("student roll number is %d\n",stud.roll_no);
    printf("student branch is %s\n",stud.branch);
    printf("student name is %s\n",stud.name);
    printf("student fees is %f\n",stud.fees);
    return 0;
}

Embed on website

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