#33668: _ans


j812018@nehs.hc.edu.tw (嗨)

學校 : 國立科學工業園區實驗高級中學
編號 : 152750
來源 : [101.10.45.143]
最後登入時間 :
2023-01-19 22:25:33

#include <iostream>
#include <string>

using namespace std;
int main(){
    string a;
    getline(cin, a);


    for(int i = 0; i < x.length();i++){
       char temp;
       temp = a[i];
       temp = temp - 7;
       cout << temp;
    }
}

#33669: Re: ans


j812018@nehs.hc.edu.tw (嗨)

學校 : 國立科學工業園區實驗高級中學
編號 : 152750
來源 : [101.10.45.143]
最後登入時間 :
2023-01-19 22:25:33

#include
#include

using namespace std;
int main(){
    string a;
    getline(cin, a);


    for(int i = 0; i < a.length();i++){
       char temp;
       temp = a[i];
       temp = temp - 7;
       cout << temp;
    }
}