#44506: 原來char也能用陣列呀! (C++)


yp11351280@yphs.tp.edu.tw (810-43韓睿哲)


#include<iostream>
#include<cmath>
using namespace std;
int main(){
    char s[7+1];
    while(cin>>s){
        for(int i=0; i<6;i++) cout<<abs(s[i]-s[i+1]);
        cout<<endl;
    }
}