Computer Science: A Structured Programming Approach Using C, Third Edition
Computer Science: A Structured Programming Approach Using C, Third Edition
3rd Edition
ISBN: 9780534491321
Author: Behrouz A. Forouzan, Richard F. Gilberg
Publisher: Course Technology, Inc.
bartleby

Videos

Question
Book Icon
Chapter 4, Problem 28PS
Program Plan Intro

To write a code which contains the function that shows the pattern below.

******************************

* *

* name *

* *

******************************

Program Plan:

Write a code in C for the following pattern:

******************************

* *

* name *

* *

******************************

Make a function named ‘PrintName’ for displaying the name inside the aforementioned star pattern.

Call the function, PrintName, in the main function.

Blurred answer
Students have asked these similar questions
Write a function hello(name), which prints "Hello" followed by the value of name. For example, hello('James') would print "Hello James". Write a program that asks the user for their name, and then uses the function to greet the person.
Write a function hello(firstname, lastname), which, for example, if called with hello('James, 'Barth'), would print two lines: Hello James Barth Hello Barth, James. Use the function in a program where you ask the user for first and last name and then call the function.
Answwr  asap 9.Write a function hello(firstname, lastname), which, for example, if called with hello('James, 'Barth'), would print two lines: Hello James Barth Hello Barth, James. Use the function in a program where you ask the user for first and last name and then call the function.?

Chapter 4 Solutions

Computer Science: A Structured Programming Approach Using C, Third Edition

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
What Are Data Types?; Author: Jabrils;https://www.youtube.com/watch?v=A37-3lflh8I;License: Standard YouTube License, CC-BY
Data Types; Author: CS50;https://www.youtube.com/watch?v=Fc9htmvVZ9U;License: Standard Youtube License