Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C# by SOFA ( 8 years ago )
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class ProgrammApp
    {
        static void Main(string[] args)
        {
            int d = 2, b = 1;
            Console.WriteLine("арифметрическая прогрессия: b=" + b + ", d=" + d);
            for (int n = 1; n <= 15; n++)
            {
                b += d;
                Console.WriteLine("№" + n + " = " + b);
                
            }
           
       
            Console.ReadLine();
        }
    }
}

 

Revise this Paste

Your Name: Code Language: