News Latest Technology, How to Fix Apple iPhone, contrast and brightness, Wireless Headphone, android KitKat stock firmware, XiaoMi Mi Pad, Tracfone Promo

Rabu, 04 Desember 2013

C# Simple Loop Program example to print characters

C# Simple Loop Program example to print characters - with more and more gadgets of new products, we should be literate technology because the product is made with the purpose to further facilitate our lives, on the blog News Latest Technology we will discuss about new and old products, we will explain the full pungsi, well now we will first clean up about C# Simple Loop Program example to print characters we have collected a lot of data to make this article so you do not deleted information. please see:

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




quite so many infromation C# Simple Loop Program example to print characters

hopefully the information we provide about C# Simple Loop Program example to print characters we provide can be useful for your life especially in determining the gadget according to your requirement.

just smell you finished reading the article about C# Simple Loop Program example to print characters if intend to share or just bookmark please use link https://memesmemosos.blogspot.com/2013/12/c-simple-loop-program-example-to-print.html to get more information about gadget please visit other pages on this blog that we guarantee super complete.

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

Related : C# Simple Loop Program example to print characters

0 komentar:

Posting Komentar