shapuk
30.11.2020 10:51

Для каких из чисел ложно высказывание: НЕ((число > 50) ИЛИ (число четное))?

8

50

123

9

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
TryCake
01.11.2020 03:48
#include <iostream>
#include <sstream>

using namespace std;
struct Vector3
{
int x, y, z;
Vector3()
{}

Vector3(int x, int y, int z): x(x), y(y), z(z)
{}
Vector3 operator + (Vector3 v1)
{
return Vector3(this->x+v1.x,this->y+v1.y,this->z+v1.z);
}
std::string ToString()
{
std::stringstream s;
s <<"(" << this->x << "," << this->y <<"," << this->z << ")";
return s.str();
}
};

int main()
{
Vector3 v1(1, 2, 3);
Vector3 v2(4, 5 ,6);
Vector3 v3;

v3 = v1 + v2;

cout << v3.ToString();
}
0,0(0 оценок)
Ответ:
vvozmisheva2
02.06.2023 10:38
Реализация на с++

Уровень А
#include<iostream.h>

using namespace std;

int main(){
  int a,b;
  cin >>a >> b;
  double s = 0.5 * a * b;
  cout << s << endl;
  return 0;
}
Уровень B
#include<iostream.h>

using namespace std;

int main(){
  int n;
  cin >> n;
  (n%3==0) ? n*2 : n+n%3;
  cout << n << endl;
  return 0;
}
Уровень C
#include<iostream.h>

using namespace std;

int main(){
  int summa = 0;
  for(int i = 1; i < 100; i+=2){
     summa += i;
  }
  cout << summa << endl;
  return 0;
}
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота