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 ConsoleApplication4
- {
- class Program
- {
- static void Main(string[] args)
- {
- int x, y;
- int r_kwadrat;
- Console.WriteLine("PODAJ X");
- x = int.Parse(Console.ReadLine());
- Console.WriteLine("PODAJ Y");
- y = int.Parse(Console.ReadLine());
- Console.WriteLine("PODAJ PROMIEN");
- r_kwadrat = int.Parse(Console.ReadLine());
- if (x * x + y * y > r_kwadrat)
- {
- Console.WriteLine("Punkty leza poza okregiem");
- }
- else if (x * x + y * y < r_kwadrat)
- {
- Console.WriteLine("Punkty leza w okregiem");
- }
- else
- {
- Console.WriteLine("Punkt lezy na okregu");
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement