алина3759
05.04.2020 21:44

1.s:= 'программирование' Delete(s,1,7);
Delete (s,4,6);
s-?
2. s:= 'перемена';
t:= 'к';
insert(t,s,8);
s-?
3. s:= 'перемена';
t:= UpCase (s[1] + Copy (s,6,3)
t-?
4.s:='Мир';
t:= LowCase(s)
t-?
5. s:='мир';
t:=UpperCase(s)
t-?
и другие


1.s:= 'программирование' Delete(s,1,7);Delete (s,4,6);s-?2. s:= 'перемена';t:= 'к';insert(t,s,8);s-?

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:

using System;

using static System.Console;

namespace ConsoleApp7

{

   class Program

   {

       static bool isprost(int n)

       {

           bool t = true;

           for (int i = 2; i <= n / 2; i++)

               if (n % i == 0)

                   return !t;

           return t;

       }

       static void Main(string[] args)

       {

           Write("Введите кол-во чисел n=");

           int x, n = int.Parse(ReadLine());

           Write("случайные простые числа по данной формуле из [0;28]: ");

           Random r=new Random();

           for (int i=1;i<=n;)

           {

               x = r.Next(0, 28);

               if (isprost(x))

               {

                   Write((x*x*2+29).ToString() + " ");

                   i++;

               }

           }

           ReadKey();

       }

   }

}

0,0(0 оценок)
Ответ:
Petrov7771
17.05.2022 01:15

using System;

using static System.Console;

namespace ConsoleApp7

{

   class Program

   {

       static bool isprost(int n)

       {

           bool t = true;

           for (int i = 2; i <= n / 2; i++)

               if (n % i == 0)

                   return !t;

           return t;

       }

       static void Main(string[] args)

       {

           Write("Введите кол-во чисел n=");

           int x, n = int.Parse(ReadLine());

           Write("случайные простые числа по данной формуле из [0;28]: ");

           Random r=new Random();

           for (int i=1;i<=n;)

           {

               x = r.Next(0, 28);

               if (isprost(x))

               {

                   Write((x*x*2+29).ToString() + " ");

                   i++;

               }

           }

           ReadKey();

       }

   }

}

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота