Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write C code for a program that does the following: Create a character array that displays the message My Friends Ages Program at the

Write C code for a program that does the following:
Create a character array that displays the message "My Friends Ages Program" at the declaration
Create a second array that will store 4 integer values
Use assignment statements to store the following friend's ages
ages[0]=25
ages[1]=27
ages[2]=24
ages[3]=26
Use a puts() statement to display the message in the first bullet
Use a for() statement to display each age stored in the array element
The end output statement should display the friend's ages.
Note there is no flowchart with this exercise.
Submit one Word document which contains:
A screenshot of your output including the Title Bar of the console window.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

Describe legally required benefits.

Answered: 1 week ago

Question

Evaluate 3x - x for x = -2 Answer:

Answered: 1 week ago

Question

What is group replacement? Explain with an example. (2-3 lines)

Answered: 1 week ago