Created
February 28, 2015 11:05
-
-
Save Kanol/c8b4b2610c82742969ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication4 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Int64 Square; | |
Int64 Numb = 10; | |
while (Numb>0) | |
{ | |
if (Numb % 2 == 0) | |
{ | |
Square = Numb * Numb; | |
Numb = Numb - 1; | |
Console.WriteLine(Square); | |
} | |
else | |
{ | |
Numb = Numb - 1; | |
} | |
} | |
Console.ReadLine(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment