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 ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] suma = new string[1001];
- Console.WriteLine("Pedkic");
- int szetczik = 0;
- int x = Int32.Parse(Console.ReadLine());
- for (int i = 0; i < x; i++)
- {
- Console.WriteLine("Priv");
- string[] z1 = new string[1000];
- for(int l1 = 0; l1 < z1.Length; l1++)
- {
- z1[l1] = Console.ReadLine();
- }
- Console.WriteLine("Pierwsza liczba : " + z1);
- string[] z2 = new string[1000];
- for (int l2 = 0; l2 < z2.Length; l2++)
- {
- z2[l2] = Console.ReadLine();
- }
- Console.WriteLine("Pierwsza liczba : " + z2);
- int koniec;
- for(koniec = 0; z1[koniec] != null && z2[koniec] != null; koniec++)
- {
- }
- for(int j = koniec; z1[j] != null && z2[j] != null; j--)
- {
- int k1 = Int32.Parse(z1[j]);
- int k2 = Int32.Parse(z2[j]);
- int k0 = k1 + k2 + szetczik;
- szetczik = 0;
- if(k0 >= 10)
- {
- int l = k0 - 10;
- suma[koniec + 1] = Convert.ToString(l);
- szetczik++;
- }
- }
- Console.WriteLine("Suma: " + suma);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement