#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int a,b,c;
a='A';
b='B';
c='A'+'B';
cout<<a<<b<<c<<endl;
return 0;
}
6566131
Process returned 0 (0x0) execution time : 0.866 s
Press any key to continue.
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int a[10];
char str[100];
scanf("%s",str);
a[0]=str[0];
a[0]+=str[1];
cout<<a[0];
return 0;
}