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
Area and Volume coding
TeleBook
strend
ReDisp
Spring 2017 Project 2 v1.1
C_141210_Funciones
1.c
la wea afortunada
Program to input form command line and print it
Lab 7 blackjack v1.0