Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace SimpleAF
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. Console.WriteLine("Zadej polomer");
  14. double polomer = double.Parse(Console.ReadLine());
  15. float Pi = (float) Math.PI;
  16. double obsah = Pi * (polomer * polomer);
  17. double obvod = 2 * Pi * polomer;
  18. Console.WriteLine("Obsah je " + obsah + " cm2");
  19. Console.WriteLine("Obvod je " + obvod + " cm");
  20. Console.ReadKey();
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement