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 Zadanie6
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Program liczący pole i obwód koła");
- double promien;
- double pole;
- double obwod;
- Console.Write("Podaj promień koła: ");
- promien = Convert.ToInt32(Console.ReadLine());
- pole = Math.PI * (promien * promien);
- obwod = 2 * Math.PI * promien;
- Console.Write("Gdy promień wynosi {0} to pole jest rowne {1} a obwód {2}.", promien, pole, obwod);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement