Guest User

Untitled

a guest
Nov 6th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <time.h>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10.     srand( time( NULL ) );
  11.     char literky[20];
  12.     char literky2[20];
  13.     char literky3[20];
  14.  
  15.  
  16.  
  17.    for(int i=0;i<20;i++)
  18.    {
  19.    literky[i]=(rand()%25) + 65;
  20.    cout << literky[i];
  21.    }
  22. cout << endl;
  23.    for( int i=0;i<20;i++)
  24.    {
  25.     literky2[i]=(rand()%25)+97;
  26.     cout << literky2[i];
  27.    }
  28.    cout << endl;
  29.  
  30.     for( int i=0;i<40;i++)
  31.    {
  32.        literky3[i]=literky[i]+literky2[i];
  33.        cout << literky3[i];
  34.  
  35.    }
  36.  
  37. }
  38.  
  39. // {'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