Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace INFINIT
- {
- class program
- {
- static string[] infIntArray;
- static char[] sumArr;
- static void Main()
- {
- Console.WriteLine("Hello, this is an INFINIT program!");
- Console.WriteLine();
- Console.WriteLine("Enter how many huge integers would you like to store: ");
- Console.WriteLine("(keep int mind, integers entered must be larger than int or long datatype.");
- Console.WriteLine("Int (- 2 147 483 648 : 2 147 483 647)");
- Console.WriteLine("Long (-9 223 372 036 854 775 808 : 9 223 372 036 854 775 807)");
- int answAmount = int.Parse(Console.ReadLine());
- Console.WriteLine($"Enter {answAmount} integers: ");
- infIntArray = new string[answAmount];
- for(int i=0; i < answAmount; i++)
- {
- infIntArray[i] = Console.ReadLine();
- }
- Console.WriteLine();
- int zero = 0;
- for (int i = 0; i < infIntArray.Length; i++)
- {
- char[]Arr = infIntArray[i].ToCharArray();
- Console.WriteLine($"{i+1}) ");
- for(int j = Arr.Length; j >0 ; j--)
- {
- Console.Write($"{Arr[j-1]}*10^{zero++} ");
- }
- Console.WriteLine();
- }
- }
- static void sum(char[]Arr1, char[]Arr2)
- {
- int len = 0;
- if (Arr1.Length > Arr2.Length)
- {
- len = Arr1.Length;
- }
- else if (Arr2.Length > Arr1.Length)
- {
- len = Arr2.Length;
- }
- else
- {
- len = Arr1.Length;
- }
- sumArr = new char[len];
- for(int i = 0; i < sumArr.Length; i++)
- {
- sumArr[i] =
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment