Skip to content

Instantly share code, notes, and snippets.

@CloneBoiii
Created December 18, 2018 19:37
Show Gist options
  • Save CloneBoiii/ea44600cf07a875e75391d0eda2810b6 to your computer and use it in GitHub Desktop.
Save CloneBoiii/ea44600cf07a875e75391d0eda2810b6 to your computer and use it in GitHub Desktop.
#include <iostream>
#include "pch.h"
#include "locale.h"
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
int n;
cout << "Введите кол-во элементов массива: ";
cin >> n;
double *arr = new double[n];
for (int i = 0; i < n; i++) {
cout << "Введите элемент a[" << i + 1 << "]:";
cin >> arr[i];
}
int num = 0;
for (int i = 0; i < n; i++) {
if (arr % 3 == 0 && arr % 5 != 0)
int *arr = new int[n];
}
cout << "Кол-во удовлетворяющих условию переменных: " << num;
cin.get();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment