all about smartphone technologies we discuss here, ranging from specifications and prices, how to fix hp and we provide a lot of applications and games

C# Program to display the different series output on the screen

C# Program to display the different series output on the screen - welcome to our blog that presents a very complete information is Tech Phone ok now we will discuss the information you are seeking, may I guess if you are looking for information on C# Program to display the different series output on the screen if properly come please continue reading until the end, we also provide other information, do not forget to get around:

informations : C# Program to display the different series output on the screen
Full link : C# Program to display the different series output on the screen
Article Csharp, Article programs,

You can also see our article on:


C# Program to display the different series output on the screen

C# Program to display the different series output on the screen

Program Statement:
Write a program which display the following output on the screen.
1 2 3 4 5
1 4 9 16 25
1 8 27 64 125

Solution:
 static void Main(string[] args)
{
for (int i = 1; i <= 5; i++)
Console.Write(i+" ");

Console.WriteLine();

for (int i = 1; i <= 5; i++)
Console.Write(i * i+" ");

Console.WriteLine();

for (int i = 1; i <= 5; i++)
Console.Write(i * i * i+" ");

Console.ReadLine();
}




Articles C# Program to display the different series output on the screen already been discussed

A few information about the C# Program to display the different series output on the screen, hopefully can provide benefits to all of you.

You're reading an article C# Program to display the different series output on the screen and this article has a link to https://mastispotgroup.blogspot.com/2013/12/c-program-to-display-different-series.html to revel book mark. Hopefully this article could be useful, do not forget to look for information on obtaining the phone tech blog.

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

Related : C# Program to display the different series output on the screen

  • C# Simple Loop Program example to print charactersSimple Loop Problem to Print A B D H PProblem Statement:Write a program using for loop which prints the following output. (You have to find a pattern to print alphabetic ...
  • C# Program to Print Triangle in Square C# Program to Print Triangle in SquareProgram Statement:Write a program which display the following output on the screen.####$#######$#$#####$###$###$#####$#$#######$Sol ...
  • C# Main Function for Calling all classes http://keith503tw.blogspot.com /2014/02/c-main-function-for-calling-all-classes.html" rel="nofollow" target="_blank">C# Main Function for Calling all classes void Main_ ...
  • C# Program for Array solving problemsC# Program for Array solving problemsProgram Statement:Write a function which takes four arrays of same size as arguments; array1, array2, array3, array4. The function w ...
  • C# Program to Print Fibonacci seriesC# Program to Print Fibonacci seriesProgram Statement:Write a program which prints the Fibonacci series using loop.1 1 2 3 5 8 13 21 34 …Solution: public class _fib { ...

0 komentar:

Posting Komentar