using System;
using System.Numerics;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
int a, b, c;
Console.Write("a=");
string s1 = Console.ReadLine();
a = Convert.ToInt32(s1);
Console.Write("b=");
string s2 = Console.ReadLine();
b = Convert.ToInt32(s2);
c = a + b;
string s3 = Convert.ToString(c);
string s4 = c.ToString();
Console.WriteLine("c=" + s3 + " " + s4);
BigInteger silnia = 1;
// decimal silnia = 1;
checked
{
for (int i = 1; i <= 500; i++)
{
silnia = silnia * i;
}
Console.WriteLine(silnia);
}
float x = 1.0f;
for (float i = -x; i < x; i += 0.1f)
{
Console.WriteLine(i);
if (i == 0)
Console.WriteLine("zero");
}
decimal y = 1.0m;
for (decimal i = -y; i < y; i += 0.1m)
{
Console.WriteLine(i);
if (i == 0)
Console.WriteLine("zero");
}
double d1 = 3.912387491, d2 = 8.23948759823;
Console.WriteLine("text {0:F2} {1:F5}", d1, d2);
Console.WriteLine($"text {d1:F2} {d2:F5}");
Console.WriteLine($"tex\t {d1:F2} \r\n {d2:F5}");
Console.WriteLine($@"tex\t {d1:F2} \r\n {d2:F5}");
Console.ReadLine();
}
}
}