Advertisement
Guest User

Untitled

a guest
Nov 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1.  
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace ConsoleApplication4
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. int x, y;
  15. int r_kwadrat;
  16. Console.WriteLine("PODAJ X");
  17. x = int.Parse(Console.ReadLine());
  18. Console.WriteLine("PODAJ Y");
  19. y = int.Parse(Console.ReadLine());
  20. Console.WriteLine("PODAJ PROMIEN");
  21. r_kwadrat = int.Parse(Console.ReadLine());
  22.  
  23.  
  24. if (x * x + y * y > r_kwadrat)
  25. {
  26. Console.WriteLine("Punkty leza poza okregiem");
  27. }
  28. else if (x * x + y * y < r_kwadrat)
  29. {
  30. Console.WriteLine("Punkty leza w okregiem");
  31. }
  32. else
  33. {
  34. Console.WriteLine("Punkt lezy na okregu");
  35. }
  36. Console.ReadLine();
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement