myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
Y

@yasmim_wen

Criar e manipular matrizes

C++
1 year ago
#include <iostream> using namespace std; int main() { int matriz[3][3]; // Declara uma matriz 3x3 // Entrada de dados cout << "Digite os elementos da matriz 3x3:" << endl; for (int i = 0; i < 3; i++) { // Percorre as linhas

Elementos comuns entre dois vetores

C++
1 year ago
#include <iostream> #include <vector> using namespace std; vector<int> elementosComuns(vector<int> v1, vector<int> v2) { vector<int> comuns; // Armazena os elementos comuns for (int i = 0; i < v1.size(); i++) { // Percorre o primeiro vetor

Produto matricial

C++
1 year ago
#include <iostream> using namespace std; void produtoMatricial(int A[2][3], int B[3][2], int C[2][2]) { for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { C[i][j] = 0; // Inicializa o elemento C[i][j] como zero
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us