Test All Gadget, Z3X BOX Samsung, Miracle Box, Smart Phone Flash Tool, Stock ROMs, Android Tool, apps, Data Plans Internet

Rabu, 04 Desember 2013

C# Simple Loop Program example to print characters

C# Simple Loop Program example to print characters - discussing about technology is my hobby, with media blogs Test All Gadget we can share the knowledge of technology that continues to grow with various ways of use that is intended to simplify your life, now we will discuss first about that in your search that is C# Simple Loop Program example to print characters please refer to our explanation because we will try to make a complete article for you.

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();
}




enough already articles C# Simple Loop Program example to print characters

hopefully the information C# Simple Loop Program example to print characters that we submit on this blog can be useful for your life and all the people who visit this blog.

you just finished reading the article with the title C# Simple Loop Program example to print characters if you intend to bookmark or shre please use the link https://testallforone.blogspot.com/2013/12/c-simple-loop-program-example-to-print.html and do not visit other pages on this blog because it still sangant a lot of information about gadgets from the old to the latest.

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

Related : C# Simple Loop Program example to print characters

0 komentar:

Posting Komentar