answersLogoWhite

0

#include <stdio.h>

#include <conio.h>

void main()

{

int height, line, i;

clrscr();

scanf("%d", &height);

for (i = 0; i < height - 1; ++i)

printf(" ");

printf("1\n");

for (line = 1; line < height; ++line)

{

for (i = 0; i < height - line - 1; ++i)

printf(" ");

for (i = 0; i < line; ++i)

printf("%d", line + 1);

printf(" ");

for (i = 0; i < line; ++i)

printf("%d", line + 1);

printf("\n");

}

getch();

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


Write a program to Print pyramid of numbers using java?

hi question is here, 1 1 2 1 2 3 1 2 3 4


Q2 Write a program to print even numbers between 10 and 50?

You can use int i; for (i = 10; i &lt;= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.


Write a C Program to print sum of squares of odd numbers?

#include


How do you write a Qbasic program to display these Numbers-0112358132134?

you do this 10 print "0112358132134" use the whole of the thing


Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?


How do you write a program to print numbers from star one and next line star two in php?

Try the triangle program on a search engine. Replace numbers with stars and that should do the trick


Write a c program to print the 100 to 1 nos?

Write a c program to print the 100 to 1 nos


Write a unix program to print print a pattern?

echo 'print a pattern'


Write the program in qbasic and add two numbers?

Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end


How do you write a program in java to read ten numbers and print sum of ten integers?

Add the numbers into one variable as you read them in. But if you prefer, you can read the numbers into an array and then use a loop to add the numbers together.


How do you Write a C program to print a Series of Odd Numbers and Even Numbers.?

Reference:http:cprogramming-bd.com/c_page2.aspx# strange number