Practica_6_-_Ejercicio_02

Dependencies:   mbed TextLCD

main.cpp

Committer:
isaacross99
Date:
2019-10-22
Revision:
30:f7518060fc89
Parent:
29:734b61eca6df
Child:
31:080589c1250a

File content as of revision 30:f7518060fc89:

#include "mbed.h"
Serial pc(USBTX,USBRX);


int main(){
    const int filas=3;
    const int columnas=3;
        int matriz [filas][columnas];
        int i,j;
        int contador=0;
        
    for (i=0;i<filas;i++)
        {
                for (j=0;j<columnas;j++)
                    {   contador = contador+1;
                        matriz [i][j]=contador;
                         pc.printf("%d\t", matriz[i][j]);
                        }
                        pc.printf("\n");
                    }
        
       
}