Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int i=0, s=1;
- srand (time(NULL));
- for(i;i<100;i++)
- {
- printf("Organizam%i\n",s);
- s=s+1;
- printf("Brzina=");
- printf("%d\n", rand() % 10 + 1);
- printf("Otpornost=");
- printf("%d\n", rand() % 10 + 1);
- printf("Izdrzljivost=");
- printf("%d\n", rand() % 10 + 1);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement