Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp2
- {
- class Program
- {
- static void Main(string[] args)
- {
- sbyte[,] pole = new sbyte[1, 500];
- for ()
- {
- }
- Console.Write(pole[0, 0] + ",");
- for (int i = 1; i < 500; i++)
- {
- Console.Write(pole[0, i]);
- }
- Console.ReadKey();
- }
- static int factorial(int n)
- {
- int v = 1;
- for (int i = 1; i <= n; i++)
- {
- v = v * i;
- }
- return v;
- }
- static void pocitani(int delitel, sbyte[] pole)
- {
- int delenec = 1;
- for (int i = 0; i < 500; i++)
- {
- pole[i] = (sbyte)(delenec / delitel);
- delenec = (delenec % delitel) * 10;
- }
- }
- static void scitani(sbyte[] pole, sbyte[] poley)
- {
- sbyte palec = 0;
- for (int j = 500; j > 0; j--)
- {
- poley[j] = (sbyte)(poley[j] + pole[j] + palec);
- if (poley[j] > 9)
- {
- palec = (sbyte)(poley[j] / 10);
- poley[j] = (sbyte)(poley[j] % 10);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement