Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
B_141121_aleatorios
//Title of this code #include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { long size; long i; printf("Número de elementos ... "); scanf(" %ld", &size); long a[size]; srand(time(NULL)); for(i = 0 ; i < size ; i++) { a[i] = 1 + rand() % 100; } printf("\n\n\n"); for(i = 0 ; i < size ; i++) { printf("a[%3ld] = %10ld\n", i, a[i]); } printf("\n\n\n"); return 0; }
run
|
edit
|
history
|
help
0
18BCE2182 ASSESS_1 Q2-2
TopTriangle.c
WrongWay reversible iterator Copyright(C) 2016 Henry Kroll III www.thenerdshow.com
16-bit signed or unsigned int -> ASCII
MULTI-CAST
DIGITOS DE U. A DECENAS
Singly LinkedList.c
150116_OrdenMatriz
Area of a rectangular prism
14th Feb Programming Project v.01