shams200108
10.08.2022 03:46

Первоначально программисты научились получать рисунки на компьютере в
режиме символьной печати. Что было единицей изображения

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
Даниил358
11.11.2022 19:27
Package main;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
     public static BufferedReader READER = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        int N = Integer.parseInt(READER.readLine());
        int[] array = new int[N];
        for(int i = 0; i < array.length; ++i)
            array[i] = Integer.parseInt(READER.readLine());
        System.out.println("Negative: " + Main.function(array));
    }
     public static boolean function(int[] array) {
        for(int number : array)
            if(number >= 0) return false;
        return true;
     }
}
0,0(0 оценок)
Ответ:
berezkina04
28.09.2021 23:45

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace Global

{

   class Program

   {

       static void Main(string[] args)

       {

           string first_x = Console.ReadLine();

           int first_input = Convert.ToInt16(first_x);

           int y = 1 - first_input;

           y = y + 3 * Get_x();

           y = y - 4 * Get_x();

           Console.Write(y);

           Console.Read();

       }

       static int Get_x()

       {

           string input = Console.ReadLine();

           int x = Convert.ToInt16(input);

           return x;

       }

   }

}

Объяснение:

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