Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n,i,j;
- cin>>n;
- int a[n][n];
- for(i=0;i<n;i++)
- {
- for(j=0;j<n;j++)
- {
- char m;
- cin>>m;
- if(int(m)<=65&&int(m)<=90)
- {
- int x=int(m)-64;
- a[i][j]=x;
- cout<<a[i][j]<<endl;
- }
- else
- {
- int x=95-int(m);
- a[i][j]=~x;
- cout<<a[i][j]<<endl;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement