Q:

Create a structure variable that would store for a student his or her name, university id number, and GPA. Print this information

0

Create a structure variable that would store for a student his or her name, university id number, and GPA. Print this information. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> studentst = struct('name', 'Smith, Susan', 'UID', ...

 12345678, 'GPA', 3.5);

>> fprintf('name: %s\nUID: %d\nGPA: %.2f\n', studentst.name,...

 studentst.UID, studentst.GPA)

name: Smith, Susan

UID: 12345678

GPA: 3.50

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now