#include<stdio.h>
struct studentinfo {
char name[50];
int age;
float spi;
};
int main() {
struct studentinfo stud1;
printf("\nEnter student information\n");
printf("Enter student name: ");
scanf("%s", stud1.name);
printf("Enter student age: ");
scanf("%d", &stud1.age);
printf("Enter student spi: ");
scanf("%f", &stud1.spi);
printf("\nFinal student information\n");
printf("Name: %s\n", stud1.name);
printf("Age: %d\n", stud1.age);
printf("SPI: %f", stud1.spi);
return 0;
}