Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Vectores: Mayor lista numeros al azar
//Title of this code //clang 3.6.0 #include <stdio.h> #include <stdlib.h> #define TAM 100 int main(void) { int v[TAM]; int i, mayor; srand(time(NULL)); for (i=0; i<TAM; i++) v[i]=rand() % TAM; for (i=0; i<TAM; i++) printf("%d, ", v[i]); printf("\n\n"); // cuál es el más grande?? mayor= v[0]; for (i=1; i<TAM; i++) if (v[i]>mayor) mayor = v[i]; printf("\nEl mayor es %d", mayor); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Run code before/after main in C (Clang)
A3Q1
Lazy dope vectors by Henry Kroll III www.thenerdshow.com
Concatenate Strings
definice funkce
Cuadrado asteriscos solido
ternary test c89
pattern1
char xor
DÚ 2
Please log in to post a comment.