Question: ICA 18-13 Write a MATLAB program that will ask the user to enter their age, then ask them to enter the name of their best
ICA 18-13

Write a MATLAB program that will ask the user to enter their age, then ask them to enter the name of their best friend, and then ask them to enter their friend's age. Determine the difference in the ages, and express this value as a positive integer. Finally, a statement in the following format should be displayed in the command window: My age is _________ years. _________ is my best friend. My friend's age is __________ years. The difference is our age is ________ years
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
