Question: #include #include Int main() 1 } Int age[3], 1=0,] = 0; char name [3] [50]; double salary [3]; for(i=0; I < 3; I++) printf(Enter the

#include #include Int main() 1 } Int age[3], 1=0,] = 0; char name [3] [50]; double salary [3]; for(i=0; I < 3; I++) printf("Enter the name of employee %d: ", i+1); //prompt the to enter name scanf("%s", name[1]); //scan user's input printf("\ ")*; //prompt the to enter age //scan user's input return 0; //prompt the to enter salary //scan user's input //a new line for(j = 0; j < 3; j++) //print Prints information (name, age, salary) of each employee in a separate line printf("The name of employee %d is: %s. They are %d years old, and their salary is $ %.2f.\ ", j+1, name[j], age[j], salary[i])

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!