SHARE
TWEET

(Toni) Kod za generaciju mk1

Kirabo Nov 23rd, 2015 (edited) 177 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main()
  4. {
  5.   int i=0, s=1;
  6.   srand (time(NULL));
  7.   for(i;i<100;i++)
  8.     {
  9.         printf("Organizam%i\n",s);
  10.         s=s+1;
  11.         printf("Brzina=");
  12.         printf("%d\n", rand() % 10 + 1);
  13.         printf("Otpornost=");
  14.         printf("%d\n", rand() % 10 + 1);
  15.         printf("Izdrzljivost=");
  16.         printf("%d\n", rand() % 10 + 1);
  17.     }
  18.   return 0;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top