Matriz

#include <stdio.h> #include <stdlib.h> int main(){ int i, j, a [3][3], b [3][3], c [3][3]; for (i = 0; i < 3; i++) for (j = 0; j < 3; j++) { printf ("Digite a [%d][%d]:", i, j); scanf ("%d", a [i][j]); printf ("Digite b [%d][%d]:", i, j); scanf ("%d", b [i][j]); } for (i = 0; i < 3; i++) for (j = 0; j <3 ; j++) c [i][j] = a [i][j] + b [i][j]; system ("PAUSE"); return 0; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.