answersLogoWhite

0

#include<stdio.h> main() { int i,j,k,n; char c; printf("enter the # of rows of graphical output\n"); scanf("%d",&n); printf("enter the character you want to print\n"); scanf("%c",&c); for(i=1;i<=n;i++) { for (k=1;k<=(n-i);k++) { printf(" "); } for(j=0;j<i;j++) { printf("%c",c); printf(" "); } for(k=1;k<=(n-i-1);k++) { printf(" "); } printf("\n"); } getch(); }

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What name is given to the largest pyramid?

The Pyramid of the Sun


How do you find surface area of prymaid?

Using the dimensions you're given and those that you can calculate . . .-- Calculate and write down the area of each face of the pyramid.-- Then add up all of the individual areas.-- The sum is the surface area of the pyramid.


What is the direction of flow of energy for the pyramid?

construct to food chains with the help of the given energy pyramid


Why is it called the great pyramid of Giza?

Because it is the largest pyramid on the Giza plateau.the name giza was given to it because it is a pyramid and it is in the city of giza


Besides the pyramid and the Sphinx are there any other famous monuments in Giza?

The answer, given the question is under the Great Pyramid of Giza, is yes, the main ones being - The Pyramid of Khafre. The Pyramid of Menkaure.


What is the name given to a pyramid with circular base?

It's A CONE


Write a java programm to find maximum number in the given array?

class maximum{public static void main(string...args){System.out.println(max(new int[]{5,3,6,2,4,61}));}static int max(int[]a){int max=0;for(int i=0;imax)max=a[i];}return max;}}


What is the given volume of a rectangular pyramid?

The volume of any pyramid or cone is given by the formula: 1/3 x base area x height For a rectangular-based pyramid: 1/3 x base width x base length x height


What is the name given today to Khufu's tomb?

The Great Pyramid of Giza.


What has a square basefour trangular faces?

The description given fits that of a pyramid


What is the slant height VP in the regular pyramid below?

The answer is given below.


Which of the following is made up of one base and a vertex not in the same plane as the base?

pyramid and coneIn the list given, only the cone and pyramid have a vertex.