using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static int Fib(int n)
{
int s = 0;
if (n == 1 || n == 2) return s = 1;
else return s = Fib(n - 1) + Fib(n - 2);
}
static int NWD(int a, int b)
{
if (b == 0) return a;
else return NWD(b, a % b);
}
static int Aryt(int a1, int r, int n)
{
if (n == 1) return a1;
else return Aryt(a1, r, (n - 1))+r;
}
static int Geo(int a1, int r, int n)
{
if (n == 1) return a1;
else return Aryt(a1, r, n) * r;
}
static void Main(string[] args)
{
int a1,r,n;
Console.Write("Podaj a1: ");
a1 = Int32.Parse(Console.ReadLine());
Console.Write("Podaj r: ");
r = Int32.Parse(Console.ReadLine());
Console.Write("Podaj n: ");
n = Int32.Parse(Console.ReadLine());
Console.WriteLine("a1 {0} r {1} n {2} w {3}", a1, r, n, Geo(a1,r,n));
Console.ReadKey();
}
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}