answersLogoWhite

0


Best Answer

#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

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you program pyramid of letters using dev c plus programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


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)


TV program name using these letters santad?

Dasant


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'


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")


What is the difference between program and programming as used in computer programming?

The difference between a program and programming is programming is the actual activity of writing computer code in any of the various computer languages available, the end result of which is a program. The program can then be ran by the computer and perform the task the programmer told it to do.