Print floyd''s triangle - c# program, DOT NET Programming

Assignment Help:

Print Floyd's Triangle - C# Program

I am unable to make out how to print Floyd's Triangle in C# language. Can anyone suggest me any example for this.


Related Discussions:- Print floyd''s triangle - c# program

Nopcommerce expert needed, Readymade NopCom 3.2 receptive website needs mod...

Readymade NopCom 3.2 receptive website needs modifications. This is a developer/ webdesign (nopcommerce) opportunity which can allow a good developer/ designer the ability to creat

What is a host process, What is a host process? A host process is an im...

What is a host process? A host process is an implementable program that hosts a workflow. It might be a Windows Forms application, a Web application, or a Web service applicati

Dynamic web presentation tier, Part 1 requires you to complete a dynamic we...

Part 1 requires you to complete a dynamic web presentation tier, based on your MiddlewareLib.dll  library. This should run as an ASP.NET page, Default.aspx, under WebDev.WebServer,

Explain fully how ado.net functions, Question : (a) Explain fully how ...

Question : (a) Explain fully how ADO.NET functions. Illustrate your answer using a diagram. (b) List and explain three methods of the SqlCommand class. (c) Give four o

Program of custom console output - c# program, Program of Custom Console Ou...

Program of Custom Console Output - C# Program Hello guys i need your advice. How can i implement the custom console output in my project. Please recommend some examples.

What are assemblies, What are Assemblies? Assembly is a single deployab...

What are Assemblies? Assembly is a single deployable unit that have information about the implementation of classes, structures and interfaces. It also keeps the information ab

Prepare an application in c# or c++, Prepare an Application in C# or C++ ...

Prepare an Application in C# or C++ Project Description: We are seeking someone who can write a program in C# or C++. The concept is to develop the program using a Cross P

Develop a list reconciliation tool, Project Description: We have a recon...

Project Description: We have a reconciliation tool, written in VB.Net that selects customer data (email, addresses, etc) from three different data sources and compares them with

How to clear a datagrid on a button click, How to clear a datagrid on a but...

How to clear a datagrid on a button click? You require to Clear the DataSource of the dadaGrid. So try this: dataSet1.Clear(); dataGrid1.DataSource = dataSet1.TableNam

What is extensible markup language, What is Extensible Markup Language (XML...

What is Extensible Markup Language (XML). XML is an easy and flexible mark-up language in the text format. Nowadays, it is widely used to exchange a large variety of data over

2/11/2013 8:17:59 AM

This code will help you.

Program:

using System;  

class FloydsTriangle1

{

public static void Main()

{

int i,j,k=1;

Console.WriteLine(" *** Floyd''s Triangle - Normal Numeric Mode **** ");

for (i=1; i<=13; i++)

{  // 13 is the height of the triangle

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

{  // each time the number per line is incremented by 1

Console.Write(k++ + " "); // k is the actual data (number) which will be printed.

}

Console.Write("\n"); // then we go to the next line.

}

Console.ReadLine();

}

Robert

2/11/2013 8:19:25 AM

The floyd''''s triangle normal numeric mode:

2 3
4 5 6 
7 8 9 10
11 12 13 14 15 
16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 32 33 34 35 36
37 38 39 40 41 42 43 44 45
46 47 48 49 50 51 52 53 54 55
56 57 58 59 60 61 62 63 64 65 66
67 68 69 70 71 72 73 74 75 76 77 78
79 80 81 82 83 84 85 86 87 88 89 90 91

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd