fork download
  1. #include <stdio.h>
  2.  
  3. #define kol 10
  4.  
  5. int main()
  6. {
  7. int i;
  8. double wektor[kol];
  9. for(i=0;i<kol;++i)
  10. {
  11. wektor[i]=rand();
  12. printf("[%d]=%.1f\n", i, wektor[i]);
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 2296KB
stdin
Standard input is empty
stdout
[0]=1804289383.0
[1]=846930886.0
[2]=1681692777.0
[3]=1714636915.0
[4]=1957747793.0
[5]=424238335.0
[6]=719885386.0
[7]=1649760492.0
[8]=596516649.0
[9]=1189641421.0