Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #include <tchar.h>
- int _tmain(int argc, _TCHAR* argv[])
- {
- int i=20;
- char s[20];
- srand((unsigned int)time(NULL));
- char a='A';
- for (i =1; i <= 20; i++) {
- s[i]=rand() % 22 +(int)(a);
- s[i]=(char)s[i];
- printf("%c\n", s[i]);
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement