Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace interpolation
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n;
- Console.WriteLine("Пиши n:");
- n = int.Parse(Console.ReadLine());
- float[,] num = new float[2, n];
- for (int i = 0; i < 2; i++)
- for (int j = 0; j < n; j++)
- {
- Console.Write("num[{0}][{1}] = ", i, j);
- num[i, j] = float.Parse(Console.ReadLine());
- }
- for (int i = 0; i < 2; i++)
- {
- for (int j = 0; j < n; j++)
- Console.Write("{0}|\t",num[i, j]);
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement