Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <time.h>
- using namespace std;
- int main()
- {
- srand( time( NULL ) );
- char literky[20];
- char literky2[20];
- char literky3[20];
- for(int i=0;i<20;i++)
- {
- literky[i]=(rand()%25) + 65;
- cout << literky[i];
- }
- cout << endl;
- for( int i=0;i<20;i++)
- {
- literky2[i]=(rand()%25)+97;
- cout << literky2[i];
- }
- cout << endl;
- for( int i=0;i<40;i++)
- {
- literky3[i]=literky[i]+literky2[i];
- cout << literky3[i];
- }
- }
- // {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
Advertisement
Add Comment
Please, Sign In to add comment