answersLogoWhite

0


Best Answer

using System;

namespace RightAngleTraingle

{

class Program

{

static void Main(string[] args)

{

for (int x = 1; x <= 5; x++)

{

for (int y = 1; y <= x; y++)

{

Console.Write(x.ToString());

}

Console.WriteLine();

}

Console.Read();

}

}

}

Thanks & Regards,

Shoaib R Khan - SRK

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a c sharp program to print 1 22 333 4444 55555 as right angle trianglr?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How can you write a c program that prints a table of trigonometric values for sin cos and tan?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; #include&lt;math.h&gt; void main() { const float pi=3.14; float angle,radian; clrscr(); printf("Angle\t Radian\t\t sin\t\t cos\t\t tangent"); for(angle=0;angle&lt;=180;angle+=10) { radian=(pi/180.0)*angle; printf("\n%0.0f\t%f\t%f\t%f\t%f",angle,radian,sin(radian),cos(radian),tan(radian)); } getch(); }


How do you write a program to find the area of a triangle?

The area of a triangle is one half base times height, so you would write a program to input the base and height, giving the option to stop, calculating and printing the area, and then looping to repeat as desired.


How can you write a program that prints a table of trigonometric values for sin cos and tan?

&lt;div id="trig"&gt;&lt;/div&gt; &lt;script type="text/javascript"&gt; function getTrigTable( minAngle, maxAngle, step) { var angle, trigArr = [], resultsArr= [], deg2rad = Math.PI / 180.0, i, tableHTML = ""; minAngle = parseFloat( minAngle ); if (isNaN( minAngle )) minAngle = 0; maxAngle = parseFloat( maxAngle ); if (isNaN( maxAngle ) maxAngle &lt; minAngle) maxAngle = 360; step = Math.abs(parseFloat( step ) 1); for (angle = minAngle; angle &lt;= maxAngle; angle += step) { trigArr[0] = angle + "&amp;deg;"; trigArr[1] = Math.round(Math.sin( angle * deg2rad ) * 1e7) / 1e7; trigArr[2] = Math.round(Math.cos( angle * deg2rad ) * 1e7) / 1e7; trigArr[3] = Math.round(Math.tan( angle * deg2rad ) * 1e7) / 1e7; if (trigArr[2] == 0) trigArr[3] = "&amp;infin;"; resultsArr.push( trigArr.slice() ); } for (i = 0; i &lt; resultsArr.length; i++) { tableHTML += "&lt;tr&gt;&lt;td&gt;" + resultsArr[ i ].join( "&lt;/td&gt;&lt;td&gt;" ) + "&lt;/td&gt;&lt;/tr&gt;"; } return "&lt;table border="1"&gt;&lt;thead&gt;" + "&lt;tr&gt;&lt;th&gt;Angle&lt;/th&gt;&lt;th&gt;Sin&lt;/th&gt;&lt;th&gt;Cos&lt;/th&gt;&lt;th&gt;Tan&lt;/th&gt;&lt;/tr&gt;" + "&lt;/thead&gt;&lt;tbody&gt;" + tableHTML + "&lt;/tbody&gt;&lt;/table&gt;"; } window.onload = function() { document.getElementById( "trig" ).innerHTML = getTrigTable(); } &lt;/script&gt;


What is the transmission angle?

Angle between coupler link and output link for a given crank angle is called transmission angle, it is maximum when crank angle is 180 degree and minimum when crank angle is 0 degree


What is difference between electrical angle and mechanical angle?

Electrical angle is half of mechanical angle in unipolar electrical machines. In multipolar electrical machines, the relationship between the mechanical angle and electrical angle is Electrical angle = (P/2) x Mechanical angle where: P = Number of poles.

Related questions

What is nighty degrase angle?

a write angle


What is a write angle?

A right angle is 90 degrees


What type of angle is letter t?

if you use 2 straight lines to write your letter t... then it would probably be a 90 degree angle or a right angle... otherwise it depends on how u write them


What letter has both a right angle plus acute angle?

If you write it so the middle angle is a right angle, "K" fits the description.


How do you write 14 as a angle?

If an angle is 14 then it is most likely to be in degrees, and therefore written as 14&deg;


How can you write a c program that prints a table of trigonometric values for sin cos and tan?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; #include&lt;math.h&gt; void main() { const float pi=3.14; float angle,radian; clrscr(); printf("Angle\t Radian\t\t sin\t\t cos\t\t tangent"); for(angle=0;angle&lt;=180;angle+=10) { radian=(pi/180.0)*angle; printf("\n%0.0f\t%f\t%f\t%f\t%f",angle,radian,sin(radian),cos(radian),tan(radian)); } getch(); }


How do you write a sentence with the word angle?

He tried to angle his shot, but it fired way wide.That's a tight angle, are you sure you can park there?Look at the angle of the beams - the architecture here is so beautiful.


What is a capital letter with one acute angle and one right angle?

Well, you can write all capital letters and find out.


Calculute the area of triangle with 10cm and 30degrees at one angle?

Write the question out properly Write the question out properly


Big Avenue and Pecan Road make a 130° angle. The angle of Pecan road and the main street is 20°. Write the name of the triangle?

The image


How many ways can you write XYZ in math?

If it's for an angle (triangles included) you can only write it 2 ways: XYZ and ZYX


What is a program in c to convert radiance to degree?

radiance should read radians. angle in degrees = angle in radians * 180 / Pi I will leave the actual programming to you as it is very simple.