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 SimpleAF
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Zadej polomer");
- double polomer = double.Parse(Console.ReadLine());
- float Pi = (float) Math.PI;
- double obsah = Pi * (polomer * polomer);
- double obvod = 2 * Pi * polomer;
- Console.WriteLine("Obsah je " + obsah + " cm2");
- Console.WriteLine("Obvod je " + obvod + " cm");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement