answersLogoWhite

0

#include


int main()

{

static int ROWS = 6;

char ch;

printf("Please enter an UPPERCASE letter:");

scanf("%c",&ch);

for( int row = 0; row < ROWS; ++row )

{

// Print padding.

for( int column = 1; column < ROWS - row; ++column)

printf(" ");


// Print letters left of centre.

for( int letter = row; letter >= 1; --letter)

printf("%c", ch);


// Print centre letter.

printf("%c", ch);


// print letters right of centre.

for( int letter = row; letter >= 1; --letter)

printf("%c", ch);


printf("\n");

}

return( 0 );

}


User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Is there software taht can teach me how to program?

There is no one program used to teach programming. There are many programming languages so there is one way to learn programming. You normally use the program that you are learning to program in using a book and instruction as to how the language works.


TV program name using these letters santad?

Dasant


What has the author Wade Ellis written?

Wade Ellis has written: 'Structured programming using Turbo BASIC' -- subject(s): BASIC (Computer program language), Structured programming, Turbo BASIC (Computer file) 'Structured programming using True BASIC' -- subject(s): Structured programming, True BASIC (Computer program language)


What do you mean by c taken programming in c?

A C program is a computer program written using the C programming language.


What is basic computer programming?

It could be one of two things:Programming using the programming language BASICSimple programs, like the ones that you learn to make when you first start programming, like a hello program.


Is c an application or software?

"C" is a programming language. It is implemented by writing a program using the C syntax and then translated by a compiler, which is an application program.


How is parallax used in computer programming?

Parallax is used in computer programming by using a computer and a USB connection. They have been popular in robotics because of their easiness to program.


What is editing a program using computers and other digital equipment called?

Programming.


What has the author Jaime Nino written?

Jaime Nino has written: 'Introduction to Programming and OOD Java' 'An introduction to programming and object-oriented design using JAVA' -- subject(s): Java (Computer program language), Object-oriented programming (Computer science) 'Introduction to Programming and OOD Using Java'


What is the purpose of using the sub keyword in programming languages?

The purpose of using the &quot;sub&quot; keyword in programming languages is to define a subroutine or a function that can be called and executed within the program to perform a specific task or set of tasks.


Why do you need testing of a computer program?

Testing of a computer program is necessary so that all users have the same experience when using the program. Beta testing is the name of this type of programming test.


How do you write a C plus plus program that displays a pyramid of Xes on the screen using a for loop?

printf ("x")