Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- edwinjair
- Date:
- 2020-04-11
- Revision:
- 26:e7705b4a36bf
- Parent:
- 25:c4eed8baa6d3
- Child:
- 27:f49a13e3c1b3
File content as of revision 26:e7705b4a36bf:
#include "mbed.h" #include <iostream> #include <stdlib.h> #include <time.h> Serial com1(USBTX, USBRX); void Matriz(void) { cout<<endl; cout<<"Matriz aleatoria 0-255"<<endl; cout<<"**********************************************"<<endl; srand(time(NULL )); int matriz [10][10]; for (int fila = 0; fila < 10; fila++) { for (int columna = 0; columna < 10; columna++) { matriz[fila][columna] = 1 + rand() % 256; cout<<matriz[fila][columna]<<" "; } cout<<endl; } cout<<"**********************************************"<<endl; } int main() { Matriz(); }