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 ConsoleApp8
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.BackgroundColor = ConsoleColor.White;
- Console.ForegroundColor = ConsoleColor.Black;
- Console.Clear();
- Console.Write("Kérem a kör sugarát: ");
- double r = double.Parse(Console.ReadLine());
- double terulet = r * r * Math.PI;
- Console.WriteLine($"A {r} sugarú kör területe: {terulet}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement