answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

int main()

{

int i,j,k,row,m;

printf("Enter the no of rows:");

scanf("%d",&row);

m=row;

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

{

printf("\n");

for(k=0;k<row;k++)

printf(" ");

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

printf(" *");

row--;

}

getch();

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write a program that input a positive integer and prints a triangle using for loop?

write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?


How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


Write a program to print an astrick in 1st line 2 astricks in 2nd line and so on 25 astricks in 25th line?

With a nested loop this is fairly simple. Example, in Java: for (int i = 1; i


Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


Write a pascal program that compute an area of a triangle?

{A program to compute the area of a triangle} {by Ogboin W. Meshach} Var; b,h:real; BEGIN Writeln('Triangle'); Write('Base: '); Readln(base); Write('Height: '); Readln(height); area:=0.5*base*height; Writeln('Area: ', area :0:2); End.


Write a program in qbasic to make a hut using print statemant?

a triangle then a square :)


Write a general statement concerning the sum of the measures of the angles of a triangle?

The sum of the three interior angles of a triangle always total 180 degrees.


Write a program that will graph using for loop?

A = 5do{statement;A = A + 1;} while (A < 10)


How do you write a program using the gotoxy statement and print function to display letters of the alphabet on the computer screen?

There is no gotoxy statement in C.


How can I effectively write a personal statement for a master's program?

To write an effective personal statement for a master's program, focus on showcasing your academic achievements, relevant experiences, and future goals. Be authentic, highlight your unique qualities, and explain why you are a good fit for the program. Use clear and concise language, provide specific examples, and tailor your statement to each program you apply to. Proofread carefully and seek feedback from others to ensure your statement is strong and compelling.


What symbols are used to write numerals digits or coordinates or factors or divisors or asterisks?

digits


Write a C program to declare result of a student using multilevel?

This is a statement with a question mark?