answersLogoWhite

0


Best Answer

for(int i=1;i<=n;i++)

{

for(int j=1;j<=i;j++)

{

print what u need

}

print to go to next line

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you prepare a right angled triangle of using for loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you find the perimeter of a right angled triangle using the area?

how to find the perimeter of a right angled triangle using the area


How can you calculate the length of the hypotenuse of a right angle triangle?

By using the formula a2+b2=c2, where a is one side of the right-angled triangle and b is the other side of the right angle triangle. C stands for the hypotenuse of the right-angled triangle. Note: this formula only works for RIGHT-ANGLED TRIANGLES!!!


How do you calculate the length of a right angled triangle using the sine formulae?

The answer depends on what other information you have about the triangle.


Do 5 12 13 form a right angled triangle?

Yes they do for a triangle using Pythagorean theorem 5 squared + 12 squared = 13 squared


Can a triangle with sides 45 75 84 equal a right angle?

no. If it is a right angled triangle. Then using Pythagoras' formula a2 +b2 =c2


What is the thoerem of Pythagoras?

thePythagoras theorem was simply to calculate the sides of a right angled triangle, isosceles triangle and cubes and cuboids here is the formulas; right angled triangle= a^2+b^2=c^2 for an isosceles triangle, split it in half and you have two right angled triangles, use the formula above afterwords cube/cuboids, you can find the face diagonal and the space diagonal by using the formula above to calculate if it is a right angled triangle or not, then you need the 3 sides( a, b and c)add a^2 and b^2, then calculate c^2, if a^2+b^2 is equal to c^2, then it is a right angled triangle, if not, then it isn't a right angled triangle by the converse of Pythagoras, hope this helped :-) hope its not to complicated for you!


Can the number 13.5 14 and 30 be lengths of three sides of a triangle?

If its a right angled triangle, try using Pythagoras to check.... x


How to form a double cone using a right-angled triangle?

u have to imagine it revolving... only this way it's possible to form a double cone with a right triangle.


Can you explain whether or not a triangle with dimensions in inches of VIII by IX by XII is a right angled triangle?

using Pythagoras; check if 122 = 92+82 the equation is false then no it isn't a right triangle


Is 7 8 12 a right triangle?

7, 8 & 12 are the sides of the triangle.And, for a right angled triangle the Pythagoras theorem is always applicable!Pythagoras theorem states that for a right angled triangle:(Longest Side)2 = (Side-1)2 + (Side-2)2(Longest side is called as the hypotenuse).So, using data in the question:If its a right angled triangle--->122 = 72 + 82i.e. 144 = 49 + 64 => 144 = 113, which is clearly not true!Hence, the triangle with the given sides is not a right triangle.


What is the height of a right angled triangle?

Using Pythagoras' Theorum: (height)^2 = (hypotenuse)^2 - (base)^2


Where can Pythagoras Theorem be used?

Pythagoras' theorem can be used for right-angled triangles. Using the theorem, you are able to calculate what the length of one side of a triangle is.