answersLogoWhite

0

write a c++ programe to print a triangle without (for)

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Write a C plus plus function that print a triangle of stars?

Write a function that print a triangle of stars.


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


What three stars make up the Summer Triangle?

The three stars that make up The Summer Triangle are: Vega, Altair, and Deneb.Look below at Sources and related links to see the stars and constellations of The Summer Triangle.


Print upper and lower triangle of a matrix?

To print the upper triangle of a matrix, iterate through its rows and columns, printing elements where the column index is greater than or equal to the row index. For the lower triangle, print elements where the column index is less than or equal to the row index. In programming languages like Python, this can be easily achieved using nested loops. For example, for a matrix A, the upper triangle can be printed with for i in range(n): for j in range(i, n): print(A[i][j]), and similarly for the lower triangle.


What is the use of base keyword?

Using base in a derived class invokes the base class's corresponding method. For example, something like: class Shape{ public void print(){printf("Generic shape"); ... } class Triangle:Shape{ public void print(){printf("Triangle"); ... } int main() { Triangle x; x.print(); // Should print "Triangle" x.base.print(); // Should print "Generic shape" return 0; }


Do I need a C plus plus program to print PASCAL's triangle?

No.


What are the three Stars that make up winter triangle?

The three stars are Sirius, Betelgeuse and Procyon.


Flowchart in area of a triangle?

start > read a,b > A=a*b/2 > print A >stop.


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

a triangle then a square :)


Pictures of nautical stars to print out?

See related link for a star map


What is the patterns of stars in the sky?

Triangles. It's all triangles. Look up at night and pick out any three stars. They will be in a triangle.


What is the patterns of the stars in the sky?

Triangles. It's all triangles. Look up at night and pick out any three stars. They will be in a triangle.