#include #include using namespace std; int main (){ int a,z,i,j; char str[20]; char key[20]; cout << " niz za kodirane ? : " << endl; cin >> str; cout << " kluch s koito shte kodirame niza ? : " << endl; cin >> key; for ( i=0; str[i]; i++ ) for ( j=0; key[j]; j++ ) str[i] += key[j]*abs(30); cout << str; system("pause"); return 0; }