Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdbool.h>
- int main()
- {
- freopen("L0Q2.in", "r", stdin);
- freopen("L0Q2.out", "w", stdout);
- int i, j, l, c, numero = 0, l1, c2;
- scanf(" %d %d", &i, &j);
- int matrix[i][j];
- for (l = 0; l < i; l++) {
- for (c = 0; c < j; c++) {
- scanf("%d", numero);
- matrix[l][c] = numero;
- }
- }
- for (l = 0; l < i; l++) {
- for (c = 0; c < j; c++) {
- if (c == j-1)
- printf("\n");
- printf("%d", matrix[l][c]);
- }
- }
- return 0;
- }
- bool podeMultiplicar(int l1, int c2) {
- bool mult = true;
- if (l1 != c2)
- mult = false;
- return mult;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement