В
Все
Б
Биология
Б
Беларуская мова
У
Українська мова
А
Алгебра
Р
Русский язык
О
ОБЖ
И
История
Ф
Физика
Қ
Қазақ тiлi
О
Окружающий мир
Э
Экономика
Н
Немецкий язык
Х
Химия
П
Право
П
Психология
Д
Другие предметы
Л
Литература
Г
География
Ф
Французский язык
М
Математика
М
Музыка
А
Английский язык
М
МХК
У
Українська література
И
Информатика
О
Обществознание
Г
Геометрия
yaantonio19
yaantonio19
09.02.2022 04:58 •  Информатика

Определите результат вычисления суммы целых десятичных чисел: 25000+3 в формате с фиксированной запятой для 16-разрядной ячейки.

Показать ответ
Ответ:
mur181
mur181
01.02.2022 06:56

import java.util.Scanner;

public class Main {

  static int col=0;

   public static void main(String[] args) {

       Container c1 =new Container(10,4,2.5);

       v2(c1);

       System.out.println(col);

   }

   static void v2(Container container) {

       System.out.println("Ведите размеры авто");

       Scanner scanner = new Scanner(System.in);

       double l= scanner.nextInt();

       double h=scanner.nextInt();;

       double w=scanner.nextInt();;

       Car car = new Car(l,h,w);

       if (container.hashCode() >= car.hashCode()) {

           container.widht = container.widht - car.widht;

           container.height= container.height - car.height;

           container.leng = container.leng - car.leng;

            col++;

            v2(container);

           }

   }

}

public class Car {

    final double leng;

    final double height;

    final double widht;

   Car(double leng,double height,double widht){

       this.leng=leng;

       this.height=height;

       this.widht=widht;

   }

   @Override

   public int hashCode() {

       return (int) (leng+height+widht);

   }

}

public class Container {

    static double leng;

    static double height;

    static double widht;

   Container(double leng,double height,double widht){

       this.leng=leng;

       this.height=height;

       this.widht=widht;

   }

   @Override

   public int hashCode() {

       return (int) (leng+height+widht);

   }

}

0,0(0 оценок)
Ответ:
mybrainishere11
mybrainishere11
13.09.2020 04:00

#include <iostream>

using namespace std;


int main () {

    

    int digit = 300;

    

    do {

        int sum = 0;

        int teiler = 1;

        

        while (teiler <= digit)

        {

            if (digit % teiler == 0)

                sum+=teiler;

            

            teiler++;

            

        }

        

        if(sum % 10 == 0)

        {

            cout << digit << endl;

        }

        

        digit++;

        

    } while (digit <= 600);

    

    return 0;

}

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