Сообщения

Сообщения за июнь, 2022
Изображение
The Pyramid code  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Training {     class Program     {         static void Pyramid(int count)         {             for (int i = 1; i <= count; i++)             {                 for (int j = i; j < count; j++)                 {                     Console.Write(" ");                 }                 for (int k = 1; k < (i*2); k++)                 {                     Console.Write("*");               ...
Изображение
                                   The Factorial using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Training {     class Program     {         static void Factorial(int number)         {             int factorial = 1;             for (int i = number; i > 0 ; i--)             {                 factorial *= i;             }             Console.WriteLine("Factorial is : " + factorial);         }         static void Main(string[] args)         {             Console.Write("Input...
Изображение
  Triangle cods with methods using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Training {     class Program     {        static void Triangle(int count)         {             for (int i = 0; i < count; i++)             {                 for (int j = 0; j < count - i; j++)                 {                     Console.Write("*");                 }                 Console.WriteLine();             }         }         static void Triangle1(int count)         {         ...