vitalina3012
?>

#include "iostream" #include "ctime" #include "cstdlib" using namespace std; int main() { int km = 0, kn = 0, a[20]; srand(time(NULL)); for (int& i : a)i = rand() % 100 - 50, cout 0; cout << "\n+: " << kn << ", -: " << km << '\n'; getchar(); } Создать алгоритм к данной программе

Информатика

Ответы

Морозов

using System;

class Program

   {

       static void Main(string[] args)

       {

           Console.WriteLine("Введите координату x точки");

           double x = int.Parse(Console.ReadLine());

           Console.WriteLine("Введите координату y точки");

           double y = int.Parse(Console.ReadLine());

           Console.WriteLine("Введите радиус");

           double r = int.Parse(Console.ReadLine());

 

           double d = Math.Sqrt(Math.Pow(-x, 2) + Math.Pow(-y, 2));

           Console.WriteLine(d);

           if (d < r){

               Console.WriteLine("Да");}

           else if (d == r){

               Console.WriteLine("На границе");}

           else{

               Console.WriteLine("Нет");}

           Console.ReadKey();

       }

   }

Ответить на вопрос

Поделитесь своими знаниями, ответьте на вопрос:

#include "iostream" #include "ctime" #include "cstdlib" using namespace std; int main() { int km = 0, kn = 0, a[20]; srand(time(NULL)); for (int& i : a)i = rand() % 100 - 50, cout 0; cout << "\n+: " << kn << ", -: " << km << '\n'; getchar(); } Создать алгоритм к данной программе
Ваше имя (никнейм)*
Email*
Комментарий*

Популярные вопросы в разделе

CafedeMinou
korolev-comitet8825
Chuhnin195107364
dnikolay365
aaazovcev
Кулагина_Владимир1179
marinarodina90
udalova-yelena
Aleksei1968
kirik197308
AlekseiBunina1895
pivenraisa
afilippov3321
Пономаренко
Gulyaev_Egorkina