Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <conio.h>
- #include <time.h>
- int main ()
- {
- int i,n;
- char *buffer;
- int zarodek;
- zarodek= time(NULL);
- srand(zarodek);
- printf ("Dlugosc wyrazu : ");
- scanf ("%d", &i);
- buffer = (char*) malloc (i+1);
- do
- {
- for (n=0; n<i; n++)
- buffer[n]=rand();
- printf ("Losowa to: %d\n",buffer[n]);
- }
- while(1);
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment