#include <stdio.h>
#include <stdlib.h>
#include <time.h>
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |
Definition at line 5 of file Ejemplo012.c.
6{
7 int i, n;
9 srand(time(NULL));
10 do{
11 printf("Ingrese el numero de elementos: ");
12 scanf("%d", &n);
13 }while(n<1);
14 printf("Ingrese el valor maximo: ");
16 printf("Ingrese el valor minimo: ");
19 {
21 {
23 {
27 }
28 else
29 {
32 }
33 }
34 else
35 {
38 }
39 }
40 for(i=0; i<n; i++)
41 {
43 printf("%d. %f\n", i+1, x);
44 }
45 return 0;
46}