Maxtron News, Android KitKat, stock firmware, Flash file, Lava iris, Ulefone Tiger, Mobile App, Marketing Tool, Infinix Stock Roms, Android Multi Tools Latest Version

C# Simple Loop Program example to print characters

C# Simple Loop Program example to print characters - for a long time we built this blog Maxtron News with the intention to advance the knowledge of the community about technological developments that continue to advance, because not everyone can enjoy the technology, so you will we present the technology news according to what you need, now we will discuss first about C# Simple Loop Program example to print characters please refer to the information we provide we feel quite complete because we summarize from reliable sources.

Articles : C# Simple Loop Program example to print characters
full Link : C# Simple Loop Program example to print characters
Article Csharp, Article programming, Article programs,

You can also see our article on:


C# Simple Loop Program example to print characters

Simple Loop Problem to Print A B D H P

Problem Statement:
Write a program using for loop which prints the following output. (You have to find a pattern to print alphabetics in this order)
A B D H P

Solution:

static void Main(string[] args)
{
int i,j,ch=0,n;
Console.Write("A ");
for (i = 1; i <= 4; i++)
{
n = 1;
for (j = 1; j <= i; j++)
{
n = n * 2;
ch = 64 + n;
}
Console.Write((char)ch + " ");
}

Console.ReadLine();
}




just so much information C# Simple Loop Program example to print characters

hopefully the article that we make this C# Simple Loop Program example to print characters can be useful for you in adding science about gadgets that continue to advance.

you just read the article with title C# Simple Loop Program example to print characters if you wish to bookmark or share it please use link https://katieandmaxtron.blogspot.com/2013/12/c-simple-loop-program-example-to-print.html to get more information please visit our other blog page.

Tag : , , ,
Share on Facebook
Share on Twitter
Share on Google+

Related : C# Simple Loop Program example to print characters

0 komentar:

Posting Komentar