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 ConsoleApp3
- {
- class Program
- {
- static void Main(string[] args)
- {
- double max = 0;
- int i, j;
- double[,] array = new double[5, 4];
- for(i = 0; i<5; i++)
- {
- array[i, 0] = double.Parse(Console.ReadLine());
- array[i, 1] = array[i, 0] * 2;
- array[i, 2] = Math.Round(Math.PI * Math.Pow(array[i, 0], 2),2);
- array[i, 3] = Math.Round(Math.PI * array[i, 1],2);
- }
- for (i = 0; i < 5; i++)
- {
- for (j = 0; j < 4; j++)
- Console.Write(array[i, j] + " ");
- Console.WriteLine();
- }
- for (i = 0; i < 5; i++)
- {
- if (max < array[i, 0]) max = array[i, 0];
- }
- Console.WriteLine("nai golemiqt radius e " + max);
- }
- }
- }
- //1
- //3,5
- //4
- //0
- //2,2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement