луиза94
09.10.2021 20:24

Исправить s = "In a distant, but not so unrealistic, future \
where mankind has abandoned earth because it has \
become covered with trash from products sold by \
the powerful multi-national Buy N Large
corporation, \
WALLE, a garbage collecting robot has been left to \
clean up the mess. Mesmerized with trinkets of
Earth's \
history and show tunes, WALLE is alone on Earth
except \
for a sprightly pet cockroach. One day, EVE, a
sleek \
(and dangerous) reconnaissance robot, is sent to
Earth to \
find proof that life is once again sustainable."

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

program fantscrin;

  const n = 11;

  var a: array [1..n] of integer;

      i,s,p: integer;

begin

  for i: =1 to n do

    a[i]: = random(8)+4;

  for i: =1 to n do

    write(a[i], '   ');

   

  s: =0;

  p: =1;

  for i: =1 to n do

    if (i mod 2 = 0) then p: =p*a[i]

                    else s: =s+a[i];  

   

  writeln('');

  writeln('сумма = ',s);

  writeln('произведение = ',p);

end.

0,0(0 оценок)
Ответ:
karinasarova95
06.06.2023 03:46

 import java.util.Scanner;

 

class Main {  

public static void main(String[] args)

{

 Scanner input = new Scanner (System.in);

 

       System.out.println ("Let's play the lottery!");

       System.out.println ("Enter an integer from 0 to 100");

       boolean won = false;

       int x = 0;

       x = input.nextInt ();

       

       if (x > 100)

       

       {

        System.out.println ("You entered a number outside the specified limits!");

        System.out.println ("Enter a new number");

         x = input.nextInt ();

       

        }

       

       

       if (x < 0)

       

       {

        System.out.println ("You entered a number outside the specified limits!");

        System.out.println ("Enter a new number");

        x = input.nextInt ();

       

        }

       

       if (x == 10)

       

       {

        System.out.println ("You are lucky. You won 100$");

        won = true;

        }

       if (x == 50)

       

       {

        System.out.println ("Luck is always with you. You won 10$");

        won = true;

        }

       if (x == 99)

       

       {

        System.out.println ("Good job. You won 50$");

        won = true;

        }

       

       if (x == 1)

       

       {

        System.out.println ("The winning is 20$");

        won = true;

        }

       if (!won)

       {

        System.out.println("You are not lucky. Try next time");

       }

       System.out.println ("End!");

 

}

}

Объяснение:

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