@Dave1/

EvilDarkcyanEngineer

C

No description

fork
loading
Files
  • main.c
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <time.h>

int main()
{
int i=0;
double array[100];
for(i=0;i<100;++i)
array[i] = ((double) (rand() % 100 + 1)) / 2.0;
for(i=0;i<100;++i){
printf("%.2lf ",array[i]);
if(i%10==0)
printf("\n");
}
printf("\n");

return 0;
}