Поделитесь своими знаниями, ответьте на вопрос:
Решить систему линейных уравнения методом обратной матрицы с программы Mathcad Prime. Выполнить проверку.
#include <iostream>
using namespace std;
int main() {
int s = 0;
for(int i = 1; i < 101; cout << i << ' ', s+=i, i+=2);
cout << endl << s << endl;
}
2)
#include <iostream>
using namespace std;
int main() {
int n, k = 0;
cin >> n;
for(int i = 0; i < n; i++) {
int number;
cin >> number;
if(number % 2 == 0) k++;
else k--;
}
if(k > 0) cout << "Четных" << endl;
else if (k < 0) cout << "Нечетных" << endl;
else cout << "Одинаково" << endl;
}
3)
#include <iostream>
using namespace std;
int main() {
for(int i = 20; i < 51; i++)
if(i % 3 == 0 && i % 5 != 0) cout << i << endl;
}
4)
#include <iostream>
using namespace std;
int main() {
for(int i = 35; i < 88; i++)
if(i % 7 == 1 || i & 7 == 2 || i % 7 == 5) cout << i << endl;
}