memesgaming 1 #include #include struct student { char name[30]; float percent; int roll_no; }; int main( ) { typedef struct student STU ; STU s1, s2; strcpy( s1.name, "youre name"); s1.percent = 95.78; s1.roll_no = 163; strcpy( s2.name, "onother name"); s2.percent = 96.57; s2.roll_no = 87000; printf( "student 1 name : %s\n", s1.name); printf( "Grade : %.2f \n", s1.percent); printf( "Student number : %d\n", s1.roll_no); printf(" \n "); printf("student 2 name : %s\n", s2.name); printf( "Grade : %.2f \n", s2.percent); printf( "Student number : %d\n", s2.roll_no); return 0; } Quote Share this post Link to post Share on other sites